{"_id":"diff-lines","_rev":"7-5396b0eed54dc65fdbb3db152298a533","name":"diff-lines","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"diff-lines","version":"1.0.0","keywords":["diff","testing","cli"],"author":{"name":"farskipper"},"license":"MIT","_id":"diff-lines@1.0.0","maintainers":[{"name":"farskipper","email":"farskipper@smallhelm.com"}],"homepage":"https://github.com/smallhelm/diff-lines#readme","bugs":{"url":"https://github.com/smallhelm/diff-lines/issues"},"dist":{"shasum":"9da21e5928bd4e7d4bf0041d3b532dfb93977fe7","tarball":"https://registry.npmjs.org/diff-lines/-/diff-lines-1.0.0.tgz","integrity":"sha512-2PZXVP0K4q+OYXQNuP9Pgj9BUSuKcBOQTy9LhuUGQT+BIwT9TkCe87Y/bAGQd5t87O5xThCrPAnVKYLY7LO2xQ==","signatures":[{"sig":"MEQCIFqrzvMV05lQHlDIfZUfCts/xv80oqOEAQWxRJZ246NDAiAO07smNHzpByDeoEwLINWbu8s9gSCHbc/CX8jCgJlsoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"_shasum":"9da21e5928bd4e7d4bf0041d3b532dfb93977fe7","gitHead":"7ef6272124bcd257e587582beac24a02850f3c83","scripts":{"test":"node tests.js"},"_npmUser":{"name":"farskipper","email":"farskipper@smallhelm.com"},"repository":{"url":"git+https://github.com/smallhelm/diff-lines.git","type":"git"},"_npmVersion":"3.8.6","description":"Given two strings, show the lines that differ. (similar to `git diff`)","directories":{},"_nodeVersion":"5.11.1","dependencies":{"diff":"^2.2.3"},"devDependencies":{"tape":"^4.6.0"},"_npmOperationalInternal":{"tmp":"tmp/diff-lines-1.0.0.tgz_1466614066910_0.8074494858738035","host":"packages-16-east.internal.npmjs.com"},"deprecated":"This package is no longer maintained."},"1.1.0":{"name":"diff-lines","version":"1.1.0","keywords":["diff","testing","cli"],"author":{"name":"farskipper"},"license":"MIT","_id":"diff-lines@1.1.0","maintainers":[{"name":"farskipper","email":"farskipper@smallhelm.com"}],"homepage":"https://github.com/smallhelm/diff-lines#readme","bugs":{"url":"https://github.com/smallhelm/diff-lines/issues"},"dist":{"shasum":"4bbd925713e027477bcd42081b68449147b19648","tarball":"https://registry.npmjs.org/diff-lines/-/diff-lines-1.1.0.tgz","integrity":"sha512-i+SjXDo/mGXoayTUM86hj4Uozw9NigsGVWuMTvMeQFxV7Z/vBRJk6aMkhNWyFv+Xm2qdZ/5B/68F2W06NJLXcA==","signatures":[{"sig":"MEUCIGx7egaYXsIuELZqbYq5xYPXi8Z55NGm4Gj3Ju3G+fRuAiEAvEYsf2mlUcMsiarV1sNEpmZa7Do4ZuwYyP5/H7SippA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"_shasum":"4bbd925713e027477bcd42081b68449147b19648","gitHead":"9dd698822ff805ac5493852c28e8738074e4a402","scripts":{"test":"node tests.js"},"_npmUser":{"name":"farskipper","email":"farskipper@smallhelm.com"},"repository":{"url":"git+https://github.com/smallhelm/diff-lines.git","type":"git"},"_npmVersion":"3.8.6","description":"Given two strings, show the lines that differ. (similar to `git diff`)","directories":{},"_nodeVersion":"5.11.1","dependencies":{"diff":"^2.2.3"},"devDependencies":{"tape":"^4.6.0","lodash":"^4.13.1"},"_npmOperationalInternal":{"tmp":"tmp/diff-lines-1.1.0.tgz_1466617302099_0.9756281583104283","host":"packages-12-west.internal.npmjs.com"},"deprecated":"This package is no longer maintained."},"1.1.1":{"name":"diff-lines","version":"1.1.1","keywords":["diff","testing","cli"],"author":{"name":"farskipper"},"license":"MIT","_id":"diff-lines@1.1.1","maintainers":[{"name":"farskipper","email":"farskipper@smallhelm.com"}],"homepage":"https://github.com/smallhelm/diff-lines#readme","bugs":{"url":"https://github.com/smallhelm/diff-lines/issues"},"dist":{"shasum":"4f10a709b6ce2af1d6b412ada5a90cf01d782571","tarball":"https://registry.npmjs.org/diff-lines/-/diff-lines-1.1.1.tgz","fileCount":4,"integrity":"sha512-Oo5JzEEriF/+T0usOeRP5yOzr6SWvni2rrxvIgijMZSxPcEvf8JOvCO5GpnWwkte7fcOgnue/f5ECg1H9lMPCw==","signatures":[{"sig":"MEUCIE5FAytxhielJchgqZ+PpdZuigsoHOw0o0TABdjpJxrgAiEAr1W/GmozY3FqVXqe66CANfJK1S73803n9hp+a4RAkps=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"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"},"main":"index.js","gitHead":"81a98a6a2eba73c31b2f4f6a9c48f29106aba87f","scripts":{"test":"node tests.js"},"_npmUser":{"name":"farskipper","email":"farskipper@smallhelm.com"},"repository":{"url":"git+https://github.com/smallhelm/diff-lines.git","type":"git"},"_npmVersion":"6.9.0","description":"Given two strings, show the lines that differ. (similar to `git diff`)","directories":{},"_nodeVersion":"10.16.0","dependencies":{"diff":"^3.5.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.6.0","lodash":"^4.13.1"},"_npmOperationalInternal":{"tmp":"tmp/diff-lines_1.1.1_1560795411681_0.268270609743573","host":"s3://npm-registry-packages"},"deprecated":"This package is no longer maintained."}},"time":{"created":"2016-06-22T16:47:48.998Z","modified":"2025-02-09T23:03:35.036Z","1.0.0":"2016-06-22T16:47:48.998Z","1.1.0":"2016-06-22T17:41:42.623Z","1.1.1":"2019-06-17T18:16:51.783Z"},"bugs":{"url":"https://github.com/smallhelm/diff-lines/issues"},"author":{"name":"farskipper"},"license":"MIT","homepage":"https://github.com/smallhelm/diff-lines#readme","keywords":["diff","testing","cli"],"repository":{"url":"git+https://github.com/smallhelm/diff-lines.git","type":"git"},"description":"Given two strings, show the lines that differ. (similar to `git diff`)","maintainers":[{"name":"farskipper","email":"farskipper@smallhelm.com"}],"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","readmeFilename":"README.md"}