From 46e43f4bde4a35785b4997b81e86cd19f046b69b Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 21 Dec 2021 16:52:28 +0100 Subject: Commit --- src/node_modules/chance/docs/person/ssn.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/node_modules/chance/docs/person/ssn.md (limited to 'src/node_modules/chance/docs/person/ssn.md') diff --git a/src/node_modules/chance/docs/person/ssn.md b/src/node_modules/chance/docs/person/ssn.md new file mode 100644 index 0000000..c3f1f88 --- /dev/null +++ b/src/node_modules/chance/docs/person/ssn.md @@ -0,0 +1,29 @@ +# ssn + +```js +// usage +chance.ssn() +chance.ssn({ ssnFour: true }) +chance.ssn({ dashes: false }) +``` + +Generate a random social security number. + +```js +chance.ssn(); +=> '411-90-0070' +``` + +Optionally provide option of getting only the last four + +```js +chance.ssn({ ssnFour: true }); +=> '2938' +``` + +Optionally specify dashes be removed + +```js +chance.ssn({ dashes: false }); +=> '293839295' +``` -- cgit