🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

nodecmd

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodecmd

Accept input, then print the output through a given JS function.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

nodecmd

Auto buffer piped/streamed input, and then evaluate it using the given JS function.

Examples

# encode a file as base64
$ < somefile nodecmd btoa

# decode the clipboard contents
$ pbpaste | nodecmd decodeURIComponent

Notes

This is doing this all in memory, so be aware that it will have trouble with large inputs.

License

MIT

Keywords

cli

FAQs

Package last updated on 26 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts