Socket
Socket
Sign inDemoInstall

line-replace

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

line-replace - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

.travis.yml

2

package.json
{
"name": "line-replace",
"version": "1.0.2",
"version": "1.0.3",
"description": "Replace a line in a file with passed string.",

@@ -5,0 +5,0 @@ "main": "src/line-replace.js",

# line-replace
Replace a line in a file with passed string.
[![Build Status](https://travis-ci.org/codealchemist/line-replace.svg?branch=master)](https://travis-ci.org/codealchemist/line-replace)
## Install

@@ -35,9 +37,4 @@

addNewLine: true,
onReplace
callback: ({file, line, text, replacedText}) => {}
})
function onReplace({file, line, text, replacedText}) {
}
```

@@ -65,3 +62,3 @@

addNewLine: false,
onReplace
callback: ({file, line, text, replacedText}) => {}
})

@@ -68,0 +65,0 @@ ```

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