pmb-cli

0.1.0 • Public • Published

pmb-cli

License NPM Downloads NPM Version Dependency Status devDependency Status Code Style

a scaffolding tool

Installation

$ npm install pmb-cli

# or yarn
$ yarn add pmb-cli

Usage

const pmbCli = require('pmb-cli')
const result = pmbCli('w')
// result => 'w@zce.me'

API

pmbCli(input, options?)

input

  • Type: string
  • Details: name string

options

host
  • Type: string
  • Details: host string
  • Default: 'zce.me'

CLI Usage

Use npx:

$ npx pmb-cli <input> [options]

Globally install:

$ npm install pmb-cli -g
# or yarn
$ yarn global add pmb-cli
$ pmb-cli --help
demo v0.1.0

Usage:
  $ pmb-cli <input>

Commands:
  <input>  Sample cli program

For more info, run any command with the `--help` flag:
  $ pmb-cli --help

Options:
  --host <host>  Sample options
  -h, --help     Display this message
  -v, --version  Display version number

Examples:
  $ pmb-cli w --host zce.me

Contributing

  1. Fork it on GitHub!
  2. Clone the fork to your own machine.
  3. Checkout your feature branch: git checkout -b my-awesome-feature
  4. Commit your changes to your own branch: git commit -am 'Add some feature'
  5. Push your work back up to your fork: git push -u origin my-awesome-feature
  6. Submit a Pull Request so that we can review your changes.

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

License

MIT © windfly

Readme

Keywords

Package Sidebar

Install

npm i pmb-cli

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

13.3 kB

Total Files

13

Last publish

Collaborators

  • xiaozhi93