- Notifications
You must be signed in to change notification settings - Fork7
A dynamic value extension for Paw using Faker to generate data
License
REBELinBLUE/Paw-FakerDynamicValue
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A dynamic value extension forPaw usingFaker to generate data.
To use the extension simply insert the dynamic value from the right click menu > Add Dynamic Value.. > Extension > Faker.
Select thelanguage for the data and thecategory of the data you wish to generate. Then enter the name of themethod to call. Finally enter thearguments, these should be in exactly the same format as if you were writing the javascript directly (i.e. strings quoted and each argument separated by a comma).
Method with no arguments
- Category:
Basic Random Data - Method:
uuid
Equivalent to:faker.random.uuid();
Method with single argument
- Category:
Internet - Method:
password - Arguments:
8
Equivalent to:faker.internet.password(8);
Method with multiple arguments
- Category:
Commerce - Method:
price - Arguments:
1.10, 5.00, 2, '£'
Equivalent to:faker.commerce.price(1.10, 5.00, 2, '£');
Method with an array argument
- Category:
Basic Random Data - Method:
arrayElement - Arguments:
['one', 'two', 'three', 'four']
Equivalent to:faker.random.arrayElement(['one', 'two', 'three', 'four']);
Method with an object argument
- Category:
Basic Random Data - Method:
number - Arguments:
{ min: 10, max: 100 }
Equivalent to:faker.random.number({ min: 10, max: 100 });
See theFaker wiki for the list of available categories, methods and the arguments.
To install directly from source you will need to clone the repository and the build the code using the following commands
$ git clone https://github.com/REBELinBLUE/Paw-FakerDynamicValue.git$cd Paw-FakerDynamicValue$ npm install$ NODE_ENV=production make installYou can also download the latest build from thereleases tab, then simply extract to the extensions directory. (See Paw > Extensions > Open Extensions Directory).
Paw-FakerDynamicValue is licensed underThe MIT License (MIT).
About
A dynamic value extension for Paw using Faker to generate data
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.