Cross-platform Linux commands in pure ES6.
Cross-platform Linux commands in pure ES6
Cash is a cross-platform implementation of Unix shell commands written in pure ES6.
Huh? Okay - think Cygwin, except:
> npm install cash -g> cash$
Yeah. But it gets better.
Let's mix some Windows & Unix commands together:
$ ipconfig | grep IPv4 | sortIPv4 Address. . . . . . . . . . . : 10.10.40.50IPv4 Address. . . . . . . . . . . : 192.168.100.11$
No problem. Let's make all commands global on your system:
> npm install cash-global -g> ls -lah
> npm install cash-ls -g> npm install cash-grep -g
Again, you're in business:
const $ = ;const out = $;
Not terse enough? How about this:
const out = ;
Not 😎 enough? Try this:
`cp -R ./src ./destls | grep *-spec.js | catrm ./specResults.html`;
For even better programmatic Unix commands, check out Shell.JS.
It was, before Vorpal.
Made with ❤ by dthree.
Love it? Cash is brand new! Give it a ⭐️ or a tweet to help spread the word!
Cash was built with strict attention to nearly exact implementations and excellent test coverage of over 200 unit tests.
The following commands are currently implemented:
Want more commands?
I am currently looking for someone with experience in building Windows installers (
.msi) to bundle Cash and its individual components into a self-contained wrapper. If you would like to help with this, send me a ping.
falsecommands, among several other contributions.
In its very essence, Cash replaces the Windows CLI prompt (
>) with the Unix one (
$), the dollar symbol.
Cash was most fitting in this sense:
Ask and ye shall receive
Cash is also a play on the word
bash, and is actually a recursive acronym for Cash Shell.
Shout out to @aseemk for donating the name.
For example, with cash:
; // 'node_modules\n';
; // ['node_modules'];;
MIT © David Caccavella