@unmock/jaymock-cli

Generate fake JSON test data, right from the terminal.

Moved to @meeshkanml/jaymock-cli
Last updated 5 months ago by k4m4 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @unmock/jaymock-cli 
SYNC missed versions from official npm registry.

jaymock-cli

CircleCI XO Codecov

Generate fake JSON test data, right from the terminal.

Install

~ ❯❯❯ npm install --global @unmock/jaymock-cli

Usage

  Usage
    $ jaymock <text> [--json]
    $ cat <file> | jaymock [--json]
    $ jaymock --server [--port <number>]
   
  Options
    --json, -j    Print output in JSON format
    --server, -s  Start the development server
    --port, -p    Specify a port number for the server
   
  Examples
    $ jaymock '{"firstName":"name.firstName", "lastName":"name.lastName"}'
    {
      "firstName": "Alvina",
      "lastName": "Hodkiewicz"
    }
    $ jaymock '{"firstName":"name.firstName", "lastName":"name.lastName"}' --json
    {"firstName":"Anthony","lastName":"Krajcik"}
    $ jaymock --server --port 1337

Related

Contributing

Thanks for wanting to contribute! We will soon have a contributing page detailing how to contribute. Meanwhile, feel free to star this repository, open issues, and ask for more features and support.

Please note that this project is governed by the Unmock Community Code of Conduct. By participating in this project, you agree to abide by its terms.

License

MIT © Meeshkan

Current Tags

  • 1.0.0                                ...           latest (5 months ago)

1 Versions

  • 1.0.0 [deprecated]           ...           5 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (8)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |