Comparing version
{ | ||
"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 | ||
# 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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
10671
38.31%9
12.5%2
Infinity%1
Infinity%80
-20%95
-7.77%