开源软件名称(OpenSource Name):dthree/cash开源软件地址(OpenSource Url):https://github.com/dthree/cash开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):
Cash is a cross-platform implementation of Unix shell commands written in straight ES6. No native compiling and no external dependencies. While young, Cash aims to offer an alternative Linux feel on Windows and to open the door to cross-platform bash scripting in a Javascript environment. > npm install cash -g
> cash
$ Woah.Yeah. But it gets better. Let's mix some Windows & Unix commands together: $ ipconfig | grep IPv4 | sort
IPv4 Address. . . . . . . . . . . : 10.10.40.50
IPv4 Address. . . . . . . . . . . : 192.168.100.11
$ But I don't want to type "cash"No problem. Let's make all commands global on your system: > npm install cash-global -g
> ls -lah Nice, but I only want certain commandsYou're covered! > npm install cash-ls -g
> npm install cash-grep -g Wow. But I want this programmatically!Again, you're in business: const $ = require('cash');
const out = $.ls('.', {l: true}); Not terse enough? How about this: const out = $('ls -lah'); Not |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论