taketalk

1.0.0 • Public • Published

taketalk

Ever wanted a bin for your node module?

Install

$ npm install --save taketalk

Usage

#!/usr/bin/env node
 
require('taketalk')({
  init: function (input, options) {
    console.log('This is the input from the CLI:', input);
    console.log('These are the options passed:', options);
  },
 
  help: 'Help yaself!' || function () {
    console.log('Print this when a user wants help.');
  },
 
  version: '0.1.1' || function () {
    console.log('Print this when a user asks for the version.');
  }
});

License

MIT © Stephen Sawchuk

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    293,975
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    293,975
  • 0.1.1
    101
  • 0.1.0
    0

Package Sidebar

Install

npm i taketalk

Weekly Downloads

242,410

Version

1.0.0

License

MIT

Last publish

Collaborators

  • stephenplusplus