Universal npm package cli-wrapper
Last updated 3 years ago by arkio .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nucleid 
SYNC missed versions from official npm registry.

NUCLeId Npm Universal Command Line Interface

A simple yet powerful package to use command line to use your package

Ever wanted to execute your favorite npm package in CLI wihtout having to deal with whatever super package cor custom use?

Ever wanted to embed a npm package into your favorite language using only CLI Shell?

Enter nucleid, the fast and easy way to call npm package within CLI:

  • support input/output data in JSON
  • you can pipe it
  • dynamic package install (still to improve)



npm install -g nucleid

install your favorite package

npm install -g arkjs

use it in cli

> nucleid --help

  Usage: nucleid [options] [arguments...]


    -r, --require <package>   The package to require
    -e, --execute <function>  The function to execute
    -i, --install <package>   The package to install locally beforehand
    -u, --use <url>           the url of the snippet to use
    -p, --path <path>         the file to run
    --ijson                   Input argument is well formatted json that should be parsed as object
    --ojson                   Output result is object that should be well formatted json
    -h, --help                output usage information
> nucleid -r arkjs -e transaction.createTransaction "AN7BURQn5oqBRBADeWhmmUMJGQTy5Seey3" 1000000000 "" ???? --ojson

embed in your own language

PHP does not have embed crypto lib simple to use in ark?

$output = shell_exec('nucleid -r arkjs -e transaction.createTransaction "AN7BURQn5oqBRBADeWhmmUMJGQTy5Seey3" 1000000000 "" ???? --ojson');
echo "<h1>My signed transaction</h1><pre>$output</pre>";

wait! It is slightly more complex, i have put up a quick snippet to use the lib...

We got you covered:

> nucleid  "AN7BURQn5oqBRBADeWhmmUMJGQTy5Seey3" 1000000000 ????  ????  --use


> nucleid  "AN7BURQn5oqBRBADeWhmmUMJGQTy5Seey3" 1000000000 ????  ????  --path ./test.js

Current Tags

  • 1.1.1                                ...           latest (3 years ago)

3 Versions

  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (6)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © |