JSPM

taketalk

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 139682
  • Score
    100M100P100Q175645F
  • License MIT

Ever wanted a bin for your node module?

Package Exports

  • taketalk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (taketalk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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