npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nucleid

v1.1.1

Published

Universal npm package cli-wrapper

Downloads

4

Readme

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)

Quickstart

installation

npm install -g nucleid

install your favorite package

npm install -g arkjs

use it in cli

> nucleid --help

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


  Options:

    -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
{"type":0,"amount":"1000000000","fee":10000000,"recipientId":"AN7BURQn5oqBRBADeWhmmUMJGQTy5Seey3","timestamp":12272383,"asset":{},"vendorField":"🦄","senderPublicKey":"037699680696ba0f746ee581d775b0ef13a8832fe2539be80eaabff154f3e3995d","signature":"3045022100a801b198bc8719bb953d32d6afbd19bb7df4dde4ec20fee1cb5ec4dd6fe41f4902201a27a7eef2220ca9474c70f57d56dbff81ef64c3e753e5daaad499da68d0b4f8","id":"64f8d7466ae6e7f11401affdbe4dfbd94414670c2ffbb83e8c43e11ac975557e"}

embed in your own language

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

<?php
$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 https://gist.githubusercontent.com/fix/4515e7cb37a2faec13878e2ce34d094d/raw/testsignature.js

or

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