Skip to content
forked from captainsafia/fony

A simple command line tool for generating fake data from a template string

License

Notifications You must be signed in to change notification settings

shanselman/fony

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fony

fony is a simple command line tool that generates dummy JSON data from a provided template.

The application utilizes Chance.js under the hood so any data type supported by Chance.js is supported by fony.

fony is intended to provide a simple solution to the most common data generation needs. You can use the command line to pipe output from fony to other tools and integrate it into your workflow.

Installation

npm install --global fony

Usage

Note that when using fony on Windows, you need to make sure to escape the quotes in the template string like so.

> fony -t "{\"name\": \"name\", \"age\": \"age\", \"address\": \"address\"}" -c 2
  Usage: fony [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -t, --template <template>  JSON template for data to be generated
    -c, --count [count]        The number of elements to create, defaults to 1

fony

About

A simple command line tool for generating fake data from a template string

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%