Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sletheren/personal-number-generator
A mini tool to Generate Personal Numbers (Format: YYMMDD1234)
https://github.com/sletheren/personal-number-generator
Last synced: 6 days ago
JSON representation
A mini tool to Generate Personal Numbers (Format: YYMMDD1234)
- Host: GitHub
- URL: https://github.com/sletheren/personal-number-generator
- Owner: Sletheren
- Created: 2018-11-07T18:18:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T17:16:56.000Z (about 6 years ago)
- Last Synced: 2024-11-07T18:01:39.118Z (9 days ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Personal-Number-Generator [![Version](https://img.shields.io/npm/v/personal-number-generator.svg)](https://www.npmjs.com/package/personal-number-generator)
A very small Javascript tool to generate valid swedish personal numbers for mocking, testing or whatever you need.
## Get started
It's very easy to use the tool, follow the instructions
### Add the package
Install the package using npm
```
npm i personal-number-generator
```### Import the package
* NodeJS:
````js
const personalnumbergenerator = require('personal-number-generator');
````* Javascript (ES6):
````js
import personalnumbergenerator from 'personal-number-generator';
````### Generate a Personal number
Call the function you imported to generate a personal number````js
const personalNumber = personalnumbergenerator();
console.log(personalNumber); // 9407121939
````### Enjoy generating :)