You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

line-diff

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

line-diff - npm Package Compare versions

Comparing version

to
1.1.0

CONTRIBUTING.md

13

package.json
{
"name": "line-diff",
"version": "1.0.0",
"version": "1.1.0",
"description": "Compare strings line by line.",

@@ -12,4 +12,4 @@ "main": "lib/index.js",

},
"author": "Ionică Bizău <bizauionica@gmail.com>",
"license": "MIT",
"author": "Ionică Bizău <bizauionica@gmail.com> (http://ionicabizau.net)",
"license": "KINDLY",
"dependencies": {

@@ -31,3 +31,6 @@ "levdist": "^1.0.0"

},
"homepage": "https://github.com/IonicaBizau/node-line-diff"
}
"homepage": "https://github.com/IonicaBizau/node-line-diff",
"blah": {
"h_img": "http://i.imgur.com/LBR41CC.png"
}
}

@@ -1,12 +0,15 @@

![Line Diff - Compare strings line by line.](http://i.imgur.com/LBR41CC.png)
[![line-diff](http://i.imgur.com/LBR41CC.png)](#)
# line-diff
# line-diff [![Support this project][donate-now]][paypal-donations]
Compare strings line by line.
## Installation
```sh
$ npm install line-diff
$ npm i line-diff
```
## Example
```js

@@ -35,22 +38,4 @@ // Dependencies

Output:
## Documentation
```sh
not modified
- old
- deleted
-
- 12345
+ new
+ 1234
not modified
new
- deleted
-
- 12345
+ 1234
```
## Documentation
### `Change(oldLine, addedLine, sensitivity)`

@@ -93,12 +78,20 @@ A private function to compare two lines.

## How to contribute
1. File an issue in the repository, using the bug tracker, describing the
contribution you'd like to make. This will help us to get you started on the
right foot.
2. Fork the project in your account and create a new branch:
`your-great-feature`.
3. Commit your changes in that branch.
4. Open a pull request, and reference the initial issue in the pull request
message.
Have an idea? Found a bug? See [how to contribute][contributing].
## Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:
- [`diffr`](https://npmjs.com/package/diffr)
## License
See the [LICENSE](./LICENSE) file.
[KINDLY][license] © [Ionică Bizău][website]
[license]: http://ionicabizau.github.io/kindly-license/?author=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica@gmail.com%3E&year=2015
[website]: http://ionicabizau.net
[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
[donate-now]: http://i.imgur.com/6cMbHOC.png
[contributing]: /CONTRIBUTING.md
[docs]: /DOCUMENTATION.md

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.