document
brazilianCitizenNumber​
Description​
Method that generate a random valid BR citizen Number (CPF).
Parameters​
| Name | Type | Description |
|---|---|---|
| options | <Object> | You can pass parameters as this object properties |
| options.format | <Boolean> | Define that result is formated or not. Default value is false |
Returns​
- <String>
Usage​
Without passing parameters
- code
console.log(pure.document.brazilianCitizenNumber());- result
'93361134374'Describing that i want the document to be formatted
- code
console.log(pure.document.brazilianCitizenNumber({ format: true }));- result
'855.804.966-13'
brazilianCompanyNumber​
Description​
Method that generate a random valid BR company Number (CNPJ).
Parameters​
| Name | Type | Description |
|---|---|---|
| options | <Object> | You can pass parameters as this object properties |
| options.format | <Boolean> | Define that result is formated or not. Default value is false |
Returns​
- <String>
Usage​
Without passing parameters
- code
console.log(pure.document.brazilianCompanyNumber());- result
'16865761000146'Describing that i want the document to be formatted
- code
console.log(pure.document.brazilianCompanyNumber({ format: true }));- result
'45.441.632/0001-29'
brazilianId​
Description​
Method that generate a random valid BR id Number (RG). It respect validation of SSP rules to verification digit.
Parameters​
| Name | Type | Description |
|---|---|---|
| options | <Object> | You can pass parameters as this object properties |
| options.format | <Boolean> | Define that result is formated or not. Default value is false |
Returns​
- <String>
Usage​
Without passing parameters
- code
console.log(pure.document.brazilianId());- result
'298551913'Describing that i want the document to be formatted
- code
console.log(pure.document.brazilianId({ format: true }));- result
'67.413.117-4'