{"name":"myers.js","version":"0.0.7","author":{"name":"Susan Cheng","email":"susan.doggie@gmail.com"},"license":"MIT","_id":"myers.js@0.0.7","maintainers":[{"name":"susandoggie","email":"susan.doggie@gmail.com"}],"homepage":"https://github.com/SusanDoggie/myers.js#readme","bugs":{"url":"https://github.com/SusanDoggie/myers.js/issues"},"dist":{"shasum":"96a80efcc352a1206f7f90816ad6b0974a59977a","tarball":"http://registry-npm.ywwl.com/myers.js/download/myers.js-0.0.7.tgz","fileCount":12,"integrity":"sha512-cOUUcimdrehCVk/4erNm0d97mFpdsWsolhleMAP1edNMy/nu1mDyO34jidiTHD7wGD7bIWk3aEqedh3eeYntlg==","signatures":[{"sig":"MEUCIQCuKf+A2d9vbsOQwdgdWOLYk+brwZYQAkBLFCLLl3b6egIgXyw8GTSVf4IN+MwxVK1dc+wmfQZLfnmEwjXzVUsdAUo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc6i8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrl4g//TJ5T6/DmfgK3xUW3UlrqxxnJdZ1NuLyGWEbuM/4US4sv1kgx\r\n2QEyDFT/WTVTiy4x2eqkPK/R11ZzQ2sRXLeHo7BILtAvhDkT8SOOgwUNX/5A\r\nnLmlyWJu8lYuHmN4AjS9BceonKh/9+bsrwZkeMRw2Ue76Kn1Qj3F/oxKhW/O\r\naRSQM/opD9pDlrzJLtyTBRPv+AscDceBygTQ26mv/4i6g7QfW4fMiipjTE8B\r\nQS3P7bnw3MPMKoXX2Vh+ozs87hlAgnHLBfFk4scHuSGcCDwo82Rh+vvBbfUl\r\nzx5kd2D5uotykPTjU4+6VYeDTSYTNfnfMewLrVeoudTAdNRNtp8zQFmN2+w2\r\nCCnNDPhB+Ovzo6ZAf2bHijfiPEUPcQshPPLXM0VzCtiGOYFTw6HStP6j6vIL\r\ncaLAS36N9RrKAs69ymiitEm6nsh4x/spWUMtQ2U3Q31m1yPrBTyYy4FmtviY\r\nyjx065JhSuAajjoilxRNS5UyrkuCiZmY75KB1+HEMpH8PrZm3T2E8ALn9NLk\r\n/l3AV73ozKRPHKOPA2GM0UXdDE4cpX/BY7U+h7UA3pEzA3Okf/GlUHlq7HqS\r\nHpU7o7olb2bW6CwBiqhPqYFLUqFPvCQRjZ/gsh6HgzB4BoQSPKNSZAhO6SqO\r\nTZWdMeyK/3PrllpLUCPtlyp1HQ9jVyVh0Q4=\r\n=r8zB\r\n-----END PGP SIGNATURE-----\r\n","size":7413,"noattachment":false,"key":"/myers.js/-/myers.js-0.0.7.tgz"},"main":"dist/index","types":"dist/index.d.ts","module":"dist/index","gitHead":"1782bd99602586cad96e7e2ddc5cc97428da812b","scripts":{"clean":"rm -rf ./dist/*","rollup":"yarn clean && rollup -c"},"_npmUser":{"name":"susandoggie","email":"susan.doggie@gmail.com"},"repository":{"url":"git+https://github.com/SusanDoggie/myers.js.git","type":"git"},"_npmVersion":"8.19.2","directories":{},"_nodeVersion":"16.18.0","dependencies":{"lodash":"^4.17.21","nextick":"^0.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.4.1","rollup":"^2.79.1","typescript":"^4.8.4","@babel/core":"^7.19.3","@types/lodash":"^4.14.188","@babel/preset-env":"^7.19.4","rollup-plugin-dts":"^4.2.3","@rollup/plugin-json":"^5.0.0","@rollup/plugin-babel":"^6.0.0","@rollup/plugin-commonjs":"^23.0.0","@babel/preset-typescript":"^7.18.6","@rollup/plugin-typescript":"^9.0.0","@rollup/plugin-node-resolve":"^13.1.3","@babel/plugin-proposal-class-properties":"^7.18.6"},"_npmOperationalInternal":{"tmp":"tmp/myers.js_0.0.7_1668524219848_0.7592786675966594","host":"s3://npm-registry-packages"},"readme":"# myers.js\n\nA simple difference algorithm based on [Swift's implementation](https://developer.apple.com/documentation/swift/array/difference(from:by:)).\n\n## Installation\n\n**NPM**\n\n```\nnpm install myers.js\n```\n\n**Yarn**\n\n```\nyarn add myers.js\n```\n\n## API\n\n* `myers(oldStr, newStr, [options])`\n\n  Compare two inputs and return the differences.\n  \n  Options\n\n    * `compare?: (a, b) => boolean` compare function. (default `lodash.isEqual`)\n\n    * `progress?: (ratio: { count: number; total: number; }) => void` callback function for report progress.\n\n    * `debounce?: number` debounce in millisecond of progress report. (default `0`)\n\n## Examples\n\n```javascript\nimport myers from 'myers.js';\n\nconst first = 'beep boop';\nconst second = 'beep boob blah';\n\nconst diff = await myers(first, second);\n\nconsole.log(diff)\n```\n","publish_time":1668524220050,"_cnpm_publish_time":1668524220050,"dist-tags":{"latest":"0.0.22"}}