You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
635 B
32 lines
635 B
4 weeks ago
|
# aadhar
|
||
|
|
||
|
_Aadhar_ (English: Foundation) is a 12-digit unique identity number that can be obtained by residents of India, based on their biometric and demographic data.
|
||
|
|
||
|
```js
|
||
|
// usage
|
||
|
chance.aadhar()
|
||
|
chance.aadhar({ onlyLastFour: true }) // false by default
|
||
|
chance.aadhar({ separatedByWhiteSpace: false }) // true by default
|
||
|
```
|
||
|
|
||
|
Generate a random aadhar.
|
||
|
|
||
|
```js
|
||
|
chance.aadhar();
|
||
|
=> '8506 7820 9696'
|
||
|
```
|
||
|
|
||
|
Optionally provide option of getting only the last four
|
||
|
|
||
|
```js
|
||
|
chance.aadhar({ onlyLastFour: true });
|
||
|
=> '1851'
|
||
|
```
|
||
|
|
||
|
Optionally specify dashes be removed
|
||
|
|
||
|
```js
|
||
|
chance.aadhar({ separatedByWhiteSpace: false });
|
||
|
'873300307032'
|
||
|
```
|