Comparing version 0.0.6-pre2 to 0.0.6
{ | ||
"name": "shelljs", | ||
"version": "0.0.6pre2", | ||
"version": "0.0.6", | ||
"author": "Artur Adib <aadib@mozilla.com>", | ||
@@ -24,3 +24,3 @@ "description": "Portable Unix shell commands for Node.js", | ||
"bin": { | ||
"sjs": "./bin/sjs" | ||
"shjs": "./bin/shjs" | ||
}, | ||
@@ -27,0 +27,0 @@ "dependencies": {}, |
# ShellJS - Unix shell commands for Node.js [![Build Status](https://secure.travis-ci.org/arturadib/shelljs.png)](http://travis-ci.org/arturadib/shelljs) | ||
+ _This project is young and experimental. Use at your own risk._ | ||
+ _Major API change as of v0.0.4: `ls()` and `find()` now return arrays._ | ||
ShellJS is a **portable** (Windows included) implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's dependency on Unix while still keeping its familiar and powerful commands. You can also install it globally so you can run it from outside Node projects - say goodbye to those gnarly Bash scripts! | ||
ShellJS is a **portable** (Windows included) implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's dependency on Unix while still keeping its familiar and powerful commands. | ||
The project is [unit-tested](http://travis-ci.org/arturadib/shelljs) and is being used at Mozilla's [PDF.js](http://github.com/mozilla/pdf.js), [Butter.js](http://github.com/mozilla/butter) and [others](http://search.npmjs.org/#/shelljs). | ||
### Installing | ||
Via npm: | ||
```bash | ||
$ npm install [-g] shelljs | ||
``` | ||
If the global option `-g` is specified, the binary `shjs` will be installed. This makes it possible to | ||
run ShellJS scripts much like any shell script from the command line, i.e. without requiring a `node_modules` folder: | ||
```bash | ||
$ shjs my_script | ||
``` | ||
You can also just copy `shell.js` into your project's directory, and `require()` accordingly. | ||
### Examples | ||
@@ -112,20 +127,4 @@ | ||
### Installing | ||
Via npm: | ||
```bash | ||
$ npm install [-g] shelljs | ||
``` | ||
If the global option `-g` is specified, the binary `sjs` will be installed. This makes it possible to | ||
run ShellJS scripts much like any shell script from the command line, i.e. without requiring a `node_modules` folder: | ||
```bash | ||
$ sjs my_script | ||
``` | ||
You can also just copy `shell.js` into your project's directory, and `require()` accordingly. | ||
<!-- | ||
@@ -132,0 +131,0 @@ |
@@ -994,3 +994,3 @@ // | ||
var options = {}; | ||
for (letter in map) | ||
for (var letter in map) | ||
options[map[letter]] = false; | ||
@@ -997,0 +997,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
3
94898
411