binize

1.0.4 • Public • Published

binize

Easy fire node functions defined into a file via command-line.

Have you ever needed a quick way to fire an API call through command line? I have.

Usage

Install:

yarn add binize

Require and apply:

const service = module.exports = {
    myFunction: async ({ key, anotherKey }) => {
        return [key, anotherKey];
    },
};

require('binize')(service);

Run:

node file.js myFunction --key value --anotherKey anotherValue

Readme

Keywords

none

Package Sidebar

Install

npm i binize

Weekly Downloads

2

Version

1.0.4

License

MIT

Last publish

Collaborators

  • damianobarbati