Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shelljs

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shelljs - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

src/toEnd.js

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc