1.0.3 • Published 5 years ago

@rishikeshdhokare/fakedata v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
5 years ago

fakedata

Build Status Coverage Status

Javascript library to create test data.

How to install?

npm install @rishikeshdhokare/fakedata

Following are the set of api exposed through this library -

APIDescriptionExample
fakedata.boolean()returns true or falsetrue, false
fakedata.int(min, max)returns an integer greater than min and lower than maxfor min=1 & max=10 - 5, 9
fakedata.float(min, max, precision)returns a float greater than min and lower than max with precisionfor min=1, max=10 & precision=2 - 5.5, 9.4
fakedata.alphabetic(length)alphabetic string with lengthfor length=5 - akqde
fakedata.alphanumeric(length)alphanumeric string with lengthfor length=5 - miv97
fakedata.random(length)string with alphabets, numbers and special characters with lengthfor length=5 - es28%
fakedata.date()random dateMon Feb 26 2018 22:31:26 GMT+0530 (IST)
fakedata.email()random email addressabcde@xyzpq.com
1.0.0

5 years ago

1.0.3

5 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago