{"_id":"diff-lines","_rev":"4170311","name":"diff-lines","description":"Given two strings, show the lines that differ. (similar to `git diff`)","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"farskipper","email":""}],"time":{"modified":"2026-03-01T21:13:34.000Z","created":"2016-06-22T16:47:48.998Z","1.1.1":"2019-06-17T18:16:51.783Z","1.1.0":"2016-06-22T17:41:42.623Z","1.0.0":"2016-06-22T16:47:48.998Z"},"users":{},"author":{"name":"farskipper"},"repository":{"type":"git","url":"git+https://github.com/smallhelm/diff-lines.git"},"versions":{"1.1.1":{"name":"diff-lines","version":"1.1.1","description":"Given two strings, show the lines that differ. (similar to `git diff`)","main":"index.js","scripts":{"test":"node tests.js"},"repository":{"type":"git","url":"git+https://github.com/smallhelm/diff-lines.git"},"keywords":["diff","testing","cli"],"author":{"name":"farskipper"},"license":"MIT","bugs":{"url":"https://github.com/smallhelm/diff-lines/issues"},"homepage":"https://github.com/smallhelm/diff-lines#readme","devDependencies":{"lodash":"^4.13.1","tape":"^4.6.0"},"dependencies":{"diff":"^3.5.0"},"gitHead":"81a98a6a2eba73c31b2f4f6a9c48f29106aba87f","_id":"diff-lines@1.1.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"farskipper","email":"farskipper@smallhelm.com"},"dist":{"shasum":"4f10a709b6ce2af1d6b412ada5a90cf01d782571","size":1956,"noattachment":false,"key":"/diff-lines/-/diff-lines-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/diff-lines/download/diff-lines-1.1.1.tgz"},"maintainers":[{"name":"farskipper","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/diff-lines_1.1.1_1560795411681_0.268270609743573"},"_hasShrinkwrap":false,"publish_time":1560795411783,"_cnpm_publish_time":1560795411783,"_cnpmcore_publish_time":"2021-12-16T15:36:36.946Z","deprecated":"This package is no longer maintained."},"1.1.0":{"name":"diff-lines","version":"1.1.0","description":"Given two strings, show the lines that differ. (similar to `git diff`)","main":"index.js","files":["index.js"],"scripts":{"test":"node tests.js"},"repository":{"type":"git","url":"git+https://github.com/smallhelm/diff-lines.git"},"keywords":["diff","testing","cli"],"author":{"name":"farskipper"},"license":"MIT","bugs":{"url":"https://github.com/smallhelm/diff-lines/issues"},"homepage":"https://github.com/smallhelm/diff-lines#readme","devDependencies":{"lodash":"^4.13.1","tape":"^4.6.0"},"dependencies":{"diff":"^2.2.3"},"gitHead":"9dd698822ff805ac5493852c28e8738074e4a402","_id":"diff-lines@1.1.0","_shasum":"4bbd925713e027477bcd42081b68449147b19648","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"farskipper","email":"farskipper@smallhelm.com"},"dist":{"shasum":"4bbd925713e027477bcd42081b68449147b19648","size":1973,"noattachment":false,"key":"/diff-lines/-/diff-lines-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diff-lines/download/diff-lines-1.1.0.tgz"},"maintainers":[{"name":"farskipper","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/diff-lines-1.1.0.tgz_1466617302099_0.9756281583104283"},"directories":{},"publish_time":1466617302623,"_hasShrinkwrap":false,"_cnpm_publish_time":1466617302623,"_cnpmcore_publish_time":"2021-12-16T15:36:37.158Z","deprecated":"This package is no longer maintained."},"1.0.0":{"name":"diff-lines","version":"1.0.0","description":"Given two strings, show the lines that differ. (similar to `git diff`)","main":"index.js","files":["index.js"],"scripts":{"test":"node tests.js"},"repository":{"type":"git","url":"git+https://github.com/smallhelm/diff-lines.git"},"keywords":["diff","testing","cli"],"author":{"name":"farskipper"},"license":"MIT","bugs":{"url":"https://github.com/smallhelm/diff-lines/issues"},"homepage":"https://github.com/smallhelm/diff-lines#readme","devDependencies":{"tape":"^4.6.0"},"dependencies":{"diff":"^2.2.3"},"gitHead":"7ef6272124bcd257e587582beac24a02850f3c83","_id":"diff-lines@1.0.0","_shasum":"9da21e5928bd4e7d4bf0041d3b532dfb93977fe7","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"farskipper","email":"farskipper@smallhelm.com"},"dist":{"shasum":"9da21e5928bd4e7d4bf0041d3b532dfb93977fe7","size":1610,"noattachment":false,"key":"/diff-lines/-/diff-lines-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diff-lines/download/diff-lines-1.0.0.tgz"},"maintainers":[{"name":"farskipper","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/diff-lines-1.0.0.tgz_1466614066910_0.8074494858738035"},"directories":{},"publish_time":1466614068998,"_hasShrinkwrap":false,"_cnpm_publish_time":1466614068998,"_cnpmcore_publish_time":"2021-12-16T15:36:37.397Z","deprecated":"This package is no longer maintained."}},"readme":"# diff-lines\n\n[![build status](https://secure.travis-ci.org/smallhelm/diff-lines.svg)](https://travis-ci.org/smallhelm/diff-lines)\n\nGiven two strings, show the lines that differ. (similar to `git diff`)\n\n```js\nvar diff = require('diff-lines');\n\nvar a = '';\na += 'one\\n';\na += 'two\\n';\na += 'three\\n';\n\nvar b = '';\nb += 'one\\n';\nb += 'three\\n';\nb += 'four\\n';\n\nconsole.log(diff(a, b));\n```\nOutput:\n```txt\n one\n-two\n three\n+four\n```\n\n## API\n### diff(a, b[, options])\n* `options.n_surrounding` - number of lines surrounding a diff to show. (default -1, show all lines)\n\n## License\nMIT\n","_attachments":{},"homepage":"https://github.com/smallhelm/diff-lines#readme","bugs":{"url":"https://github.com/smallhelm/diff-lines/issues"},"license":"MIT"}