apeman-demo-cmd
Demo of command project.
Last updated 4 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apeman-demo-cmd 
SYNC missed versions from official npm registry.

apeman-demo-cmd

Build Status Code Climate Code Coverage npm Version JS Standard

Demo of command project.

Installation

Install apeman-demo-cmd module via npm.

$ npm install apeman-demo-cmd -g

Usage

  1. Prepare an Apemanfile.js at your project root.
  2. Run the command via CLI.

Apemanfile.js

/** Example of Apemanfile.js */

'use strict'

module.exports = {
  $cwd: __dirname,
  $pkg: { /* ... */ },
  $proto: [ /* ... */ ]
}

Then,

$ apeman-demo-cmd
CLI Options
$ apeman-demo-cmd -h

  Usage: apeman-demo-cmd [options] 

  Demo of command project.

  Options:

    -h, --help                           output usage information
    -V, --version                        output the version number
    -v, --verbose                        Show verbose logs
    -c, --configuration <configuration>  Pathname of Apemanfile

  Examples:

    $ apeman-demo-cmd                     # __description_of_command_usage__


Programmatic API

apeman-demo-cmd also provide programmatic API.

Firstly, install the module locally.

$ npm install apeman-demo-cmd --save-dev

Then,

#!/usr/bin/env

'use strict'

const apemanDemoCmd = require('apeman-demo-cmd')
const co = require('co')

co(function * () {
  yield apemanDemoCmd({})
}).catch((err) => console.error(err))

Programmatic Options
Key Description Default
verbose Show verbose logs
configuration Pathname of Apemanfile

License

This software is released under the MIT License.

Links

Current Tags

  • 4.0.2                                ...           latest (4 years ago)

24 Versions

  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.0.5 [deprecated]           ...           4 years ago
  • 3.0.3 [deprecated]           ...           4 years ago
  • 3.0.2 [deprecated]           ...           4 years ago
  • 3.0.1 [deprecated]           ...           4 years ago
  • 3.0.0 [deprecated]           ...           4 years ago
  • 2.0.9 [deprecated]           ...           4 years ago
  • 2.0.8 [deprecated]           ...           4 years ago
  • 2.0.7 [deprecated]           ...           4 years ago
  • 2.0.6 [deprecated]           ...           4 years ago
  • 2.0.5 [deprecated]           ...           4 years ago
  • 2.0.4 [deprecated]           ...           4 years ago
  • 2.0.3 [deprecated]           ...           4 years ago
  • 2.0.2 [deprecated]           ...           4 years ago
  • 2.0.1 [deprecated]           ...           5 years ago
  • 2.0.0 [deprecated]           ...           5 years ago
  • 1.1.6 [deprecated]           ...           5 years ago
  • 1.1.5 [deprecated]           ...           5 years ago
  • 1.1.4 [deprecated]           ...           5 years ago
  • 1.1.3 [deprecated]           ...           5 years ago
  • 1.1.2 [deprecated]           ...           5 years ago
  • 1.1.1 [deprecated]           ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (8)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |