{"name":"myers.js","version":"0.0.12","author":{"name":"Susan Cheng","email":"susan.doggie@gmail.com"},"license":"MIT","_id":"myers.js@0.0.12","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":"fd49949ff97e41816ce8395744f6b217829bf8b5","tarball":"http://registry-npm.ywwl.com/myers.js/download/myers.js-0.0.12.tgz","fileCount":13,"integrity":"sha512-8on2t8YUj8G+2mnuUbJoWP610/e6tkPpF4mfvIqxve+6ryoxox9ZJnhyXSOzEuQyu1mZnsgLVrn6SkvxdA5Arg==","signatures":[{"sig":"MEQCIEaRSt8lfruDOKWkn8tYug6A10fg58Ki+1VjPIWmzkdEAiB2G8Rw3Xi3WhA2hSzhT7zwUXiI14nG94qOdClQwp7wBg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdFG8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9hg/9GVLLeWaYmQbmYwqSBQyib9gR9GvLIPEsbvfWVWmZAqQsxRbX\r\nMc/oWmOvBVUOVrzegRy6pYlo9/qzwnuu0oNUXKGkLDBO6z+L5hY4+6GYaEqZ\r\nWdEQOzKIcUmUtB+ZT/b8PesmDqoQQxTAL8EloGV2v/PKWVRMLHmI9PnklscX\r\npf1eXG/wfwXI7BRfrl7SJXqPIR823FO2rrDpJiq+QqUZiWUWPAA/ex/eURsq\r\nswQ/PUsL12pM32tpkiiy0Bh3+XDzLcEQkFR+85I8cntLqwLeJv2Xxr428AWJ\r\nOLouYF1p0vHyVcspmDnIxy+Qw/xhnOMQDQH9Cf1OKiPoL1+uC5kA6oQa5Ock\r\nUK+3HnNN8iiPHO1yPltEs9Z3gUrHnFLElrfIxO450H4Ngtu0tkTJTpWJW0GE\r\nC6l3qOW2XeQwluDKEPrfEy6eWXKZfflHL6QYswqd3uyGyvf1eV+dvWxmPiJo\r\n4pB9b18mhcTFH524FsLgE3srlmiUlCLrj0+RK0Vaj4021RrLSUnCamdLMjqL\r\njivicKwomy891FgLmXsLiAhMrJjy37kqxqsifP6lJoyRlSFxE0gHMyiFAtgC\r\nDOzZvAvQdl9KcC8wcYIEVKg8jVIkUvSp0jUS3+QBEgweehKlZOvh2kBdd3HL\r\nPzXVKbL/f/P7CIFKs54kyotldkza2Y2Tiuw=\r\n=cm+T\r\n-----END PGP SIGNATURE-----\r\n","size":8120,"noattachment":false,"key":"/myers.js/-/myers.js-0.0.12.tgz"},"main":"dist/index","types":"dist/index.d.ts","module":"dist/index","gitHead":"aff3dd92d112f722894cd74e4a2cfb22511673fd","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","description":"A simple difference algorithm based on [Swift's implementation](https://developer.apple.com/documentation/swift/array/difference(from:by:)).","directories":{},"_nodeVersion":"16.18.0","dependencies":{"lodash":"^4.17.21","nextick":"^0.0.2"},"_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.12_1668567484218_0.26498642608478407","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":1668567484429,"_cnpm_publish_time":1668567484429,"dist-tags":{"latest":"0.0.22"}}