Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A dynamic value extension for Paw using Faker to generate data

License

NotificationsYou must be signed in to change notification settings

REBELinBLUE/Paw-FakerDynamicValue

Repository files navigation

Build StatusCode CoverageSoftware License

A dynamic value extension forPaw usingFaker to generate data.

Usage

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).

Examples

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.

Installing

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 install

You can also download the latest build from thereleases tab, then simply extract to the extensions directory. (See Paw > Extensions > Open Extensions Directory).

License

Paw-FakerDynamicValue is licensed underThe MIT License (MIT).

About

A dynamic value extension for Paw using Faker to generate data

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp