binize
v1.0.4
Published
binize
Downloads
6
Readme
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