1.0.6 • Published 7 months ago
is-fakedata v1.0.6
is-fakedata
This dependency has the function of generating specific data, based on given properties 🚀.
How to use it?
It's relatively easy 😎
npm install is-fakedata
import { createData } from 'is-fakedata'
The function initially receives many parameters, some are not mandatory, here I explain them to you 🙌.
t -> It is the type of data you want 'users', 'animals'
e -> It is the array of properties you want ['id', 'name'] or ['first_name']
r -> It is the number of objects you need
s -> It is optional, it is the file name
o -> It is optional, but it is the file address
Ready, that's all! 😁