Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "shelljs", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "Artur Adib <aadib@mozilla.com>", | ||
@@ -32,4 +32,4 @@ "description": "Portable Unix shell commands for Node.js", | ||
"engines": { | ||
"node": "*" | ||
"node": ">=0.8.0" | ||
} | ||
} |
@@ -311,2 +311,14 @@ # ShellJS - Unix shell commands for Node.js [![Build Status](https://secure.travis-ci.org/arturadib/shelljs.png)](http://travis-ci.org/arturadib/shelljs) | ||
### 'string'.toEnd(file) | ||
Examples: | ||
```javascript | ||
cat('input.txt').toEnd('output.txt'); | ||
``` | ||
Analogous to the redirect-and-append operator `>>` in Unix, but works with JavaScript strings (such as | ||
those returned by `cat`, `grep`, etc). | ||
### sed([options ,] search_regex, replace_str, file) | ||
@@ -313,0 +325,0 @@ Available options: |
@@ -9,6 +9,2 @@ // | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
fs.existsSync = fs.existsSync || path.existsSync; // shim for < v0.7 | ||
var common = require('./src/common'); | ||
@@ -65,2 +61,6 @@ | ||
//@include ./src/toEnd | ||
var _toEnd = require('./src/toEnd'); | ||
String.prototype.toEnd = common.wrap('toEnd', _toEnd); | ||
//@include ./src/sed | ||
@@ -67,0 +67,0 @@ var _sed = require('./src/sed'); |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
77255
36
1854
546
1