A few seconds.

taketalk

Ever wanted a bin for your node module?

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

Pincer is a project which aims to provide best library discovery tools for developers. We're growing day by day. We have only npm platform for now but we will add the others as much as we can.