{"_id":"diff-lines","_rev":"856739","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":"farskipper@smallhelm.com"}],"time":{"modified":"2026-11-06T01:40:20.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":{"integrity":"sha512-Oo5JzEEriF/+T0usOeRP5yOzr6SWvni2rrxvIgijMZSxPcEvf8JOvCO5GpnWwkte7fcOgnue/f5ECg1H9lMPCw==","shasum":"4f10a709b6ce2af1d6b412ada5a90cf01d782571","tarball":"http://registry-npm.ywwl.com/diff-lines/download/diff-lines-1.1.1.tgz","fileCount":4,"unpackedSize":3723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdB9kUCRA9TVsSAnZWagAA9dAP/jVOrh2N+o7NjH/OGI6Y\ndS6mq0QomE3F1WRstHtshdD67iiliSqjjFuUfju6uZ0Vi7gdVuA/SB+a+Q9X\nGsePyG/jlFr4Wzwz9W/BNdiZGBg2BustG7+4bgCHu31i1d2D2hlH3mvcV3Dp\nxl34f2dNLrNenz+IMyRXl3k0YGSgk3YmIvK3z2vdasFCE2tYC+rkyrH+9Egm\nLUUOJvFJSmrS71HNAY33N1nvFPLj7Dr8JmwOhq9ak/t4jgYvvYU0ou+/YGsz\nc4EInQ2KYFkuvv7bcEPpZx2Plhb/Pk3m4f+j1XPmp3QRMD21o8upL3OfxFe0\nApitS3xOSCZaEvSJOgW+RWcLuZXImNhU3Zq/GVvxEWc1HqHmzyEoAbwgqazi\nNwPABYO0gLeYwj0RgQdHoGe+QusMxpcrgRPpC7hgZYIgZZwIuNirXIK0aWl1\n7BnMAfLuJ2GGSVESiwOdOTELmG7dC8BV07bPcmdlVaCoScfzVckB/eE6e8Uc\nUiQ80VFlYioXJGd5YNQhEHwK1geCxod4Ze4IadUslM5sMEnBStOdkPtksN8z\nXD3PGMe35+XO3Df3dDd+w5u50jKsS95TvpMYtfWJE8iOnm03ucewtE3FCaXB\ncDOphh6kgZKY6wLEsgdIot3njI0vzPN/31i+gpciM32dvQD+GeaiJdKaMCTb\ndeAI\r\n=sLZp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE5FAytxhielJchgqZ+PpdZuigsoHOw0o0TABdjpJxrgAiEAr1W/GmozY3FqVXqe66CANfJK1S73803n9hp+a4RAkps="}],"size":1956,"noattachment":false,"key":"/diff-lines/-/diff-lines-1.1.1.tgz"},"maintainers":[{"name":"farskipper","email":"farskipper@smallhelm.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/diff-lines_1.1.1_1560795411681_0.268270609743573"},"_hasShrinkwrap":false,"publish_time":1560795411783,"deprecated":"This package is no longer maintained.","_cnpm_publish_time":1560795411783},"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","tarball":"http://registry-npm.ywwl.com/diff-lines/download/diff-lines-1.1.0.tgz","integrity":"sha512-i+SjXDo/mGXoayTUM86hj4Uozw9NigsGVWuMTvMeQFxV7Z/vBRJk6aMkhNWyFv+Xm2qdZ/5B/68F2W06NJLXcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGx7egaYXsIuELZqbYq5xYPXi8Z55NGm4Gj3Ju3G+fRuAiEAvEYsf2mlUcMsiarV1sNEpmZa7Do4ZuwYyP5/H7SippA="}],"size":1973,"noattachment":false,"key":"/diff-lines/-/diff-lines-1.1.0.tgz"},"maintainers":[{"name":"farskipper","email":"farskipper@smallhelm.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/diff-lines-1.1.0.tgz_1466617302099_0.9756281583104283"},"directories":{},"publish_time":1466617302623,"deprecated":"This package is no longer maintained.","_cnpm_publish_time":1466617302623},"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","tarball":"http://registry-npm.ywwl.com/diff-lines/download/diff-lines-1.0.0.tgz","integrity":"sha512-2PZXVP0K4q+OYXQNuP9Pgj9BUSuKcBOQTy9LhuUGQT+BIwT9TkCe87Y/bAGQd5t87O5xThCrPAnVKYLY7LO2xQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqrzvMV05lQHlDIfZUfCts/xv80oqOEAQWxRJZ246NDAiAO07smNHzpByDeoEwLINWbu8s9gSCHbc/CX8jCgJlsoA=="}],"size":1610,"noattachment":false,"key":"/diff-lines/-/diff-lines-1.0.0.tgz"},"maintainers":[{"name":"farskipper","email":"farskipper@smallhelm.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/diff-lines-1.0.0.tgz_1466614066910_0.8074494858738035"},"directories":{},"publish_time":1466614068998,"deprecated":"This package is no longer maintained.","_cnpm_publish_time":1466614068998}},"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"}