fake-length
v1.0.3
Published
Tired of the same old data? Or wasting time creating test data? No problem FakeIt gives you length specific random data. Created ideally for test data but can be used anywhere and genereated simply. ### Generate Specific Fake Data 1) npm install fake-leng
Downloads
4
Readme
fake-length
Tired of the same old data? Or wasting time creating test data? No problem FakeIt gives you length specific random data. Created ideally for test data but can be used anywhere and genereated simply.
Generate Specific Fake Data
- npm install fake-length
- require fake-length as fakeLength
Examples
fakeLength.firstName(3) //returns 'Ada' or any other 3 letter name at random
fakeLength.lastName(4) //returns 'Smith' or any other 4 letter name at random
fakeLength.fullName(4, 3) //return 'John Foo'
fakeLength.special.apostrophe.firstName(4) //returns "P'at"
fakeLength.special.apostrophe.lastName(8) // return "O'Connor"
fakeLength.special.apostrophe.fullName(4, 8) //returns "P'at O'Connor"