{"name":"myers.js","version":"0.0.22","main":"dist/index","module":"dist/index","types":"dist/index","repository":{"type":"git","url":"git+https://github.com/SusanDoggie/myers.js.git"},"author":{"name":"Susan Cheng","email":"susan.doggie@gmail.com"},"license":"MIT","scripts":{"clean":"rm -rf ./dist/*","rollup":"yarn clean && rollup -c"},"dependencies":{"lodash":"^4.17.21","nextick":"^0.0.2"},"devDependencies":{"@babel/core":"^7.20.12","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/preset-env":"^7.19.4","@babel/preset-typescript":"^7.18.6","@rollup/plugin-babel":"^6.0.3","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"=13.3.0","@rollup/plugin-typescript":"^11.0.0","@types/lodash":"^4.14.191","rollup":"^3.29.5","rollup-plugin-dts":"^5.1.1","tslib":"^2.4.1","typescript":"^4.9.4"},"gitHead":"965454db70cd4808e00f49d06131b084457b614f","_id":"myers.js@0.0.22","description":"A simple difference algorithm based on [Swift's implementation](https://developer.apple.com/documentation/swift/array/difference(from:by:)).","bugs":{"url":"https://github.com/SusanDoggie/myers.js/issues"},"homepage":"https://github.com/SusanDoggie/myers.js#readme","_nodeVersion":"22.21.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-e1MhQlzvQQnUyo8jmaBGufbiqRsAMSIv8hS3/ekctgqFzO3DwXb4gXOOCTYsaTk90dBxfl2dBkoM3X1Cd/USeA==","shasum":"bb5646cd73d4409f2711ceb14d2ea277194fb850","tarball":"http://registry-npm.ywwl.com/myers.js/download/myers.js-0.0.22.tgz","fileCount":8,"unpackedSize":75111,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/myers.js@0.0.22","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDWv0RSa65JfDTDbkew+k5ECbdJu/18AFHK75CKNNNipAIhAI/yILZ8aDDgGyB+aP5phJ+6AyWsfvzrKY5fFpquoMae"}],"size":7434,"noattachment":false,"key":"/myers.js/-/myers.js-0.0.22.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8427a352-0dc6-4d57-8b2d-2fac631c3037"}},"directories":{},"maintainers":[{"name":"susandoggie","email":"susan.doggie@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/myers.js_0.0.22_1762269906635_0.270478640227483"},"_hasShrinkwrap":false,"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":1762269906831,"_cnpm_publish_time":1762269906831,"dist-tags":{"latest":"0.0.22"}}