nodecmd
v1.0.1
Published
Accept input, then print the output through a given JS function.
Downloads
4
Readme
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