{"name":"myers.js","version":"0.0.20","author":{"name":"Susan Cheng","email":"susan.doggie@gmail.com"},"license":"MIT","_id":"myers.js@0.0.20","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":"93ae821b490f7b6f66fed081b1b720ae19c066d0","tarball":"http://registry-npm.ywwl.com/myers.js/download/myers.js-0.0.20.tgz","fileCount":20,"integrity":"sha512-uwTqcHx4ZezNxGH88HuzsNGizHMbxIep4Nq/QMDdNAJR0yuG5TeHMFEgxFhyn7qU4kDMqjXl0sIUd38+OzqNfg==","signatures":[{"sig":"MEQCIBTg1mb2nlJAcwIwCBGATKtfJWZV9rx3k9nPbYMd2V1gAiBReFuPBI9WcolrNsr1k4BG7xCJiE1Iqn2j/2qWPWgNIA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92208,"size":9548,"noattachment":false,"key":"/myers.js/-/myers.js-0.0.20.tgz"},"main":"dist/index","types":"dist/index.d.ts","module":"dist/index","gitHead":"ef75865119df2d4b6066c0e25d6b55e7f00dccba","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.4","description":"A simple difference algorithm based on [Swift's implementation](https://developer.apple.com/documentation/swift/array/difference(from:by:)).","directories":{},"_nodeVersion":"16.20.2","dependencies":{"lodash":"^4.17.21","nextick":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.4.1","rollup":"^3.29.5","typescript":"^4.9.4","@babel/core":"^7.20.12","@types/lodash":"^4.14.191","@babel/preset-env":"^7.19.4","rollup-plugin-dts":"^5.1.1","@rollup/plugin-json":"^6.0.0","@rollup/plugin-babel":"^6.0.3","@rollup/plugin-commonjs":"^24.0.0","@babel/preset-typescript":"^7.18.6","@rollup/plugin-typescript":"^11.0.0","@rollup/plugin-node-resolve":"=13.3.0","@babel/plugin-proposal-class-properties":"^7.18.6"},"_npmOperationalInternal":{"tmp":"tmp/myers.js_0.0.20_1755012053634_0.036899612031528806","host":"s3://npm-registry-packages-npm-production"},"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":1755012053814,"_cnpm_publish_time":1755012053814,"dist-tags":{"latest":"0.0.22"}}