/ofcom-telephone-generator

An Ofcom-sanctified fake telephone number generator

Primary LanguageTypeScript

Ofcom Telephone Number Generator

The intent of this lib is to provide a random generator of Ofcom-sanctified UK phone numbers, particularly for use in fictional/promotional/test usages.

CircleCI codecov

Usage

import generator from 'ofcom-telgen';

const phoneNumber = generator(); // 01632960123

Todo

  • Implement area codes
  • Implement mobile numbers
  • Check upper and lower bounds provide 1000 numbers
  • Validate phone numbers
  • Add typing to output

License

MIT