| 1 |
{ |
| 2 |
"_id": "fast-diff", |
| 3 |
"_rev": "15-d13a1b8bca4bec6d087c8bb4caff12a0", |
| 4 |
"name": "fast-diff", |
| 5 |
"description": "Fast Javascript text diff", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "1.2.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"1.0.0": { |
| 11 |
"name": "fast-diff", |
| 12 |
"version": "1.0.0", |
| 13 |
"description": "Fast Javascript text diff", |
| 14 |
"main": "diff.js", |
| 15 |
"devDependencies": { |
| 16 |
"googlediff": "~0.1.0", |
| 17 |
"lodash": "~2.4.1", |
| 18 |
"seedrandom": "~2.3.10" |
| 19 |
}, |
| 20 |
"scripts": { |
| 21 |
"test": "node test.js" |
| 22 |
}, |
| 23 |
"license": "Apache 2.0", |
| 24 |
"_id": "[email protected]", |
| 25 |
"dist": { |
| 26 |
"shasum": "c24be1c1c6e5222e46616a5ac67201efca2b2f6b", |
| 27 |
"tarball": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.0.0.tgz" |
| 28 |
}, |
| 29 |
"_from": ".", |
| 30 |
"_npmVersion": "1.3.14", |
| 31 |
"_npmUser": { |
| 32 |
"name": "jhchen", |
| 33 |
"email": "[email protected]" |
| 34 |
}, |
| 35 |
"maintainers": [ |
| 36 |
{ |
| 37 |
"name": "jhchen", |
| 38 |
"email": "[email protected]" |
| 39 |
} |
| 40 |
], |
| 41 |
"directories": {} |
| 42 |
}, |
| 43 |
"1.0.1": { |
| 44 |
"name": "fast-diff", |
| 45 |
"version": "1.0.1", |
| 46 |
"description": "Fast Javascript text diff", |
| 47 |
"author": { |
| 48 |
"name": "Jason Chen", |
| 49 |
"email": "[email protected]" |
| 50 |
}, |
| 51 |
"main": "diff.js", |
| 52 |
"devDependencies": { |
| 53 |
"googlediff": "~0.1.0", |
| 54 |
"lodash": "~3.9.3", |
| 55 |
"seedrandom": "~2.4.0" |
| 56 |
}, |
| 57 |
"repository": { |
| 58 |
"type": "git", |
| 59 |
"url": "https://github.com/jhchen/fast-diff" |
| 60 |
}, |
| 61 |
"bugs": { |
| 62 |
"url": "https://github.com/jhchen/fast-diff/issues" |
| 63 |
}, |
| 64 |
"scripts": { |
| 65 |
"test": "node test.js" |
| 66 |
}, |
| 67 |
"license": "Apache 2.0", |
| 68 |
"keywords": [ |
| 69 |
"diff" |
| 70 |
], |
| 71 |
"gitHead": "03a02c4649c444b4c2b00c23348d695ce5d2055c", |
| 72 |
"homepage": "https://github.com/jhchen/fast-diff", |
| 73 |
"_id": "[email protected]", |
| 74 |
"_shasum": "76532d5b8e49f6770fd464658628f9ed47eb5ac8", |
| 75 |
"_from": ".", |
| 76 |
"_npmVersion": "2.7.4", |
| 77 |
"_nodeVersion": "0.12.2", |
| 78 |
"_npmUser": { |
| 79 |
"name": "jhchen", |
| 80 |
"email": "[email protected]" |
| 81 |
}, |
| 82 |
"maintainers": [ |
| 83 |
{ |
| 84 |
"name": "jhchen", |
| 85 |
"email": "[email protected]" |
| 86 |
} |
| 87 |
], |
| 88 |
"dist": { |
| 89 |
"shasum": "76532d5b8e49f6770fd464658628f9ed47eb5ac8", |
| 90 |
"tarball": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.0.1.tgz" |
| 91 |
}, |
| 92 |
"directories": {} |
| 93 |
}, |
| 94 |
"1.1.0": { |
| 95 |
"name": "fast-diff", |
| 96 |
"version": "1.1.0", |
| 97 |
"description": "Fast Javascript text diff", |
| 98 |
"author": { |
| 99 |
"name": "Jason Chen", |
| 100 |
"email": "[email protected]" |
| 101 |
}, |
| 102 |
"main": "diff.js", |
| 103 |
"devDependencies": { |
| 104 |
"googlediff": "~0.1.0", |
| 105 |
"lodash": "~3.9.3", |
| 106 |
"seedrandom": "~2.4.0" |
| 107 |
}, |
| 108 |
"repository": { |
| 109 |
"type": "git", |
| 110 |
"url": "git+https://github.com/jhchen/fast-diff.git" |
| 111 |
}, |
| 112 |
"bugs": { |
| 113 |
"url": "https://github.com/jhchen/fast-diff/issues" |
| 114 |
}, |
| 115 |
"scripts": { |
| 116 |
"test": "node test.js" |
| 117 |
}, |
| 118 |
"license": "Apache-2.0", |
| 119 |
"keywords": [ |
| 120 |
"diff" |
| 121 |
], |
| 122 |
"gitHead": "c4d52b51324f6951a5b71d5444a8148aac018361", |
| 123 |
"homepage": "https://github.com/jhchen/fast-diff#readme", |
| 124 |
"_id": "[email protected]", |
| 125 |
"_shasum": "9439f279c20a9c1dcda71aab127c7e505d148954", |
| 126 |
"_from": ".", |
| 127 |
"_npmVersion": "3.9.5", |
| 128 |
"_nodeVersion": "6.2.1", |
| 129 |
"_npmUser": { |
| 130 |
"name": "jhchen", |
| 131 |
"email": "[email protected]" |
| 132 |
}, |
| 133 |
"maintainers": [ |
| 134 |
{ |
| 135 |
"name": "jhchen", |
| 136 |
"email": "[email protected]" |
| 137 |
} |
| 138 |
], |
| 139 |
"dist": { |
| 140 |
"shasum": "9439f279c20a9c1dcda71aab127c7e505d148954", |
| 141 |
"tarball": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.0.tgz" |
| 142 |
}, |
| 143 |
"_npmOperationalInternal": { |
| 144 |
"host": "packages-18-east.internal.npmjs.com", |
| 145 |
"tmp": "tmp/fast-diff-1.1.0.tgz_1476919260221_0.08733992953784764" |
| 146 |
}, |
| 147 |
"directories": {} |
| 148 |
}, |
| 149 |
"1.1.1": { |
| 150 |
"name": "fast-diff", |
| 151 |
"version": "1.1.1", |
| 152 |
"description": "Fast Javascript text diff", |
| 153 |
"author": { |
| 154 |
"name": "Jason Chen", |
| 155 |
"email": "[email protected]" |
| 156 |
}, |
| 157 |
"main": "diff.js", |
| 158 |
"devDependencies": { |
| 159 |
"googlediff": "~0.1.0", |
| 160 |
"lodash": "~3.9.3", |
| 161 |
"seedrandom": "~2.4.0" |
| 162 |
}, |
| 163 |
"repository": { |
| 164 |
"type": "git", |
| 165 |
"url": "git+https://github.com/jhchen/fast-diff.git" |
| 166 |
}, |
| 167 |
"bugs": { |
| 168 |
"url": "https://github.com/jhchen/fast-diff/issues" |
| 169 |
}, |
| 170 |
"scripts": { |
| 171 |
"test": "node test.js" |
| 172 |
}, |
| 173 |
"license": "Apache-2.0", |
| 174 |
"keywords": [ |
| 175 |
"diff" |
| 176 |
], |
| 177 |
"gitHead": "de7329a22025a4f58412cdc4902b30a148c76bea", |
| 178 |
"homepage": "https://github.com/jhchen/fast-diff#readme", |
| 179 |
"_id": "[email protected]", |
| 180 |
"_shasum": "0aea0e4e605b6a2189f0e936d4b7fbaf1b7cfd9b", |
| 181 |
"_from": ".", |
| 182 |
"_npmVersion": "3.9.5", |
| 183 |
"_nodeVersion": "6.2.1", |
| 184 |
"_npmUser": { |
| 185 |
"name": "jhchen", |
| 186 |
"email": "[email protected]" |
| 187 |
}, |
| 188 |
"maintainers": [ |
| 189 |
{ |
| 190 |
"name": "jhchen", |
| 191 |
"email": "[email protected]" |
| 192 |
} |
| 193 |
], |
| 194 |
"dist": { |
| 195 |
"shasum": "0aea0e4e605b6a2189f0e936d4b7fbaf1b7cfd9b", |
| 196 |
"tarball": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.1.tgz" |
| 197 |
}, |
| 198 |
"_npmOperationalInternal": { |
| 199 |
"host": "packages-12-west.internal.npmjs.com", |
| 200 |
"tmp": "tmp/fast-diff-1.1.1.tgz_1477257869597_0.3502913611009717" |
| 201 |
}, |
| 202 |
"directories": {} |
| 203 |
}, |
| 204 |
"1.1.2": { |
| 205 |
"name": "fast-diff", |
| 206 |
"version": "1.1.2", |
| 207 |
"description": "Fast Javascript text diff", |
| 208 |
"author": { |
| 209 |
"name": "Jason Chen", |
| 210 |
"email": "[email protected]" |
| 211 |
}, |
| 212 |
"main": "diff.js", |
| 213 |
"devDependencies": { |
| 214 |
"googlediff": "~0.1.0", |
| 215 |
"lodash": "~3.9.3", |
| 216 |
"seedrandom": "~2.4.0" |
| 217 |
}, |
| 218 |
"repository": { |
| 219 |
"type": "git", |
| 220 |
"url": "git+https://github.com/jhchen/fast-diff.git" |
| 221 |
}, |
| 222 |
"bugs": { |
| 223 |
"url": "https://github.com/jhchen/fast-diff/issues" |
| 224 |
}, |
| 225 |
"scripts": { |
| 226 |
"test": "node test.js" |
| 227 |
}, |
| 228 |
"license": "Apache-2.0", |
| 229 |
"keywords": [ |
| 230 |
"diff" |
| 231 |
], |
| 232 |
"gitHead": "3068710be7decb6cffb6259faf67e2e21ba5c6dc", |
| 233 |
"homepage": "https://github.com/jhchen/fast-diff#readme", |
| 234 |
"_id": "[email protected]", |
| 235 |
"_npmVersion": "5.4.1", |
| 236 |
"_nodeVersion": "8.2.1", |
| 237 |
"_npmUser": { |
| 238 |
"name": "jhchen", |
| 239 |
"email": "[email protected]" |
| 240 |
}, |
| 241 |
"maintainers": [ |
| 242 |
{ |
| 243 |
"name": "jhchen", |
| 244 |
"email": "[email protected]" |
| 245 |
} |
| 246 |
], |
| 247 |
"dist": { |
| 248 |
"integrity": "sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==", |
| 249 |
"shasum": "4b62c42b8e03de3f848460b639079920695d0154", |
| 250 |
"tarball": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz" |
| 251 |
}, |
| 252 |
"_npmOperationalInternal": { |
| 253 |
"host": "s3://npm-registry-packages", |
| 254 |
"tmp": "tmp/fast-diff-1.1.2.tgz_1505684559924_0.8983699560631067" |
| 255 |
}, |
| 256 |
"directories": {} |
| 257 |
}, |
| 258 |
"1.2.0": { |
| 259 |
"name": "fast-diff", |
| 260 |
"version": "1.2.0", |
| 261 |
"description": "Fast Javascript text diff", |
| 262 |
"author": { |
| 263 |
"name": "Jason Chen", |
| 264 |
"email": "[email protected]" |
| 265 |
}, |
| 266 |
"main": "diff.js", |
| 267 |
"types": "diff.d.ts", |
| 268 |
"devDependencies": { |
| 269 |
"lodash": "~3.9.3", |
| 270 |
"seedrandom": "~2.4.0" |
| 271 |
}, |
| 272 |
"repository": { |
| 273 |
"type": "git", |
| 274 |
"url": "git+https://github.com/jhchen/fast-diff.git" |
| 275 |
}, |
| 276 |
"bugs": { |
| 277 |
"url": "https://github.com/jhchen/fast-diff/issues" |
| 278 |
}, |
| 279 |
"scripts": { |
| 280 |
"test": "node test.js" |
| 281 |
}, |
| 282 |
"license": "Apache-2.0", |
| 283 |
"keywords": [ |
| 284 |
"diff" |
| 285 |
], |
| 286 |
"gitHead": "bc1e462881948c4d97b6103efd655b47bc4aab05", |
| 287 |
"homepage": "https://github.com/jhchen/fast-diff#readme", |
| 288 |
"_id": "[email protected]", |
| 289 |
"_npmVersion": "6.4.1", |
| 290 |
"_nodeVersion": "10.0.0", |
| 291 |
"_npmUser": { |
| 292 |
"name": "dgreensp", |
| 293 |
"email": "[email protected]" |
| 294 |
}, |
| 295 |
"dist": { |
| 296 |
"integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", |
| 297 |
"shasum": "73ee11982d86caaf7959828d519cfe927fac5f03", |
| 298 |
"tarball": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", |
| 299 |
"fileCount": 6, |
| 300 |
"unpackedSize": 39898, |
| 301 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbu8r9CRA9TVsSAnZWagAA/tgQAJ64y3NcgTcIK1/zjH/I\nsIl6ZoJsWKTvqqUQfchK6UKt58zK5ARZFgbt70osGPDEL4fXFrzt9UxlEmj0\n5hX61yGruwwDORGMPdKy3eibkJIKpnpuKV5jPU3GhsB/LqgH85wGv1759ROw\na/zsysB8iKblDBaHHyUbE5edGYum0+gx0uZGmrDO38hE+NTdQBRfC5x6gCHT\nu1J2ffYCicCAj+yGHnUHp7eHo2Kf6s01ZGz/5XTOEbsA7n3t0MDB44L/58zT\nA3K+VUFDFYFMq3GqyIT1Axr7EI2WdHaQUrttIHTZzM2k6L10TwoVmlVnnH+5\nfPLSaDnRB4lPAKdAeSaiigIMXgQCXdBTwnYN9kYddritmJ7aAznTUQjyQ1VW\nnIpngxLAmPe9epH2zWcqGlKVLjLI/XoHnJBhA3Nd/BUXb+5xr73KTSDXnklb\niMYETqt6JxxCbnjtsbk0Q6KyIECUkqeiunfRfOdjIGCVk5H9gEjP3dByMiY+\nAWLDMYNuyJXyGbGeqfYBXG1jLiPhLtyPSl9ltoVWXL4yIwmsxW4QZqTjnRbx\nEFfignbIIPwKSamfrTtkJ9YUzY3kbEFxtomRXn4DZEeIlXiy9uWn33Iq3ZOG\nJw2+IX3L4NShC133pAS01V4AWIL0SkJBUL2W1WYch1Yt4so8DR+jYsb4/k8E\nrE+3\r\n=40vD\r\n-----END PGP SIGNATURE-----\r\n" |
| 302 |
}, |
| 303 |
"maintainers": [ |
| 304 |
{ |
| 305 |
"name": "jhchen", |
| 306 |
"email": "[email protected]" |
| 307 |
} |
| 308 |
], |
| 309 |
"directories": {}, |
| 310 |
"_npmOperationalInternal": { |
| 311 |
"host": "s3://npm-registry-packages", |
| 312 |
"tmp": "tmp/fast-diff_1.2.0_1539033852577_0.6651218806054966" |
| 313 |
}, |
| 314 |
"_hasShrinkwrap": false |
| 315 |
} |
| 316 |
}, |
| 317 |
"readme": "# Fast Diff [](https://travis-ci.org/jhchen/fast-diff)\n\nThis is a simplified import of the excellent [diff-match-patch](https://code.google.com/p/google-diff-match-patch/) library by [Neil Fraser](https://neil.fraser.name/) into the Node.js environment. The match and patch parts are removed, as well as all the extra diff options. What remains is incredibly fast diffing between two strings.\n\n The diff function is an implementation of [\"An O(ND) Difference Algorithm and its Variations\" (Myers, 1986)](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.4.6927&rep=rep1&type=pdf) with the suggested divide and conquer strategy along with several [optimizations](http://neil.fraser.name/news/2007/10/09/) Neil added.\n\n```js\nvar diff = require('fast-diff');\n\nvar good = 'Good dog';\nvar bad = 'Bad dog';\n\nvar result = diff(good, bad);\n// [[-1, \"Goo\"], [1, \"Ba\"], [0, \"d dog\"]]\n\n// Respect suggested edit location (cursor position), added in v1.1\ndiff('aaa', 'aaaa', 1)\n// [[0, \"a\"], [1, \"a\"], [0, \"aa\"]]\n\n// For convenience\ndiff.INSERT === 1;\ndiff.EQUAL === 0;\ndiff.DELETE === -1;\n```\n", |
| 318 |
"maintainers": [ |
| 319 |
{ |
| 320 |
"name": "jhchen", |
| 321 |
"email": "[email protected]" |
| 322 |
} |
| 323 |
], |
| 324 |
"time": { |
| 325 |
"modified": "2019-01-03T20:58:17.671Z", |
| 326 |
"created": "2014-10-03T07:56:13.509Z", |
| 327 |
"1.0.0": "2014-10-03T07:56:14.459Z", |
| 328 |
"1.0.1": "2015-06-03T21:43:35.073Z", |
| 329 |
"1.1.0": "2016-10-19T23:21:01.968Z", |
| 330 |
"1.1.1": "2016-10-23T21:24:29.885Z", |
| 331 |
"1.1.2": "2017-09-17T21:42:40.039Z", |
| 332 |
"1.2.0": "2018-10-08T21:24:12.776Z" |
| 333 |
}, |
| 334 |
"readmeFilename": "README.md", |
| 335 |
"license": "Apache-2.0", |
| 336 |
"homepage": "https://github.com/jhchen/fast-diff#readme", |
| 337 |
"keywords": [ |
| 338 |
"diff" |
| 339 |
], |
| 340 |
"repository": { |
| 341 |
"type": "git", |
| 342 |
"url": "git+https://github.com/jhchen/fast-diff.git" |
| 343 |
}, |
| 344 |
"author": { |
| 345 |
"name": "Jason Chen", |
| 346 |
"email": "[email protected]" |
| 347 |
}, |
| 348 |
"bugs": { |
| 349 |
"url": "https://github.com/jhchen/fast-diff/issues" |
| 350 |
}, |
| 351 |
"users": { |
| 352 |
"demoive": true, |
| 353 |
"icflorescu": true, |
| 354 |
"shanewholloway": true, |
| 355 |
"invntrm": true, |
| 356 |
"paraself": true, |
| 357 |
"denji": true |
| 358 |
} |
| 359 |
} |