3 ms·
Definitely neat, but of course platform-dependent. Due to the cross-platform needs of Mozilla's PDF.js build scripts, we've been writing a Node.js lib on top o
by arturadib 14y ago
Definitely neat, but of course platform-dependent.
Due to the cross-platform needs of Mozilla's PDF.js build scripts, we've been writing a Node.js lib on top of Node's APIs that enables you to write shell-like scripts that run seamlessly on multiple platforms:
http://shelljs.org http://shelljs.org
Like Sh.py, you can (if you must) also run external commands, either synchronously or asynchronously.
- sciurus 14y agoThis seems only tangentially related. The point of something like sh.py is to ease the use of external commands you need to use. The functions that shelljs partially implements (cd, pwd, ls, find, cp, rm, mv, mkdir, test, cat, sed, grep, which, echo, exit, env) are already trivially accomplished in Python.