1.0.3 • Published 8 years ago

fake-length v1.0.3

Weekly downloads
12
License
ISC
Repository
-
Last release
8 years ago

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

1) npm install fake-length 2) 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"