1.0.3 • Published 3 years ago

personal-document-generator v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

Build Status Coverage Status

Personal document (DNI, NIF, NIE) generator

Breaking change from version 1.0.0. From v1.0.0 this module should be used as esm module. If you prefer use as CommonJS Module, install previous v0.1.6

Generate a random and valid Spanish DNI/NIF or NIE.

Install

npm i personal-document-generator --save-dev

Usage

Version v1.0.0

import { getValidDNI, generateValidNIE } from 'personal-document-generator';

getValidDNI();
//=> '30292557Q'

getValidNIE();
//=> 'Z5247524X'

Version v0.1.6

const { getValidDNI, generateValidNIE } = require('personal-document-generator');

getValidDNI();
//=> '30292557Q'

getValidNIE();
//=> 'Z5247524X'

Why this tool?

If you work in a project where you need to test the user forms where the user has to fill an input with his/her id.

If you have an automated tool to fill for you user forms, and that forms contains an DNI/NIF/NIE input. And you need to generate a different one every time.

This tool can help you.

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago