{"_id":"googlediff","_rev":"8-9e4b1bbcdaef951d90ccd93280ac82bc","name":"googlediff","description":"Simple packaging of Neil Fraser's original google-diff-match-patch","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.90":{"mantainers":[{"name":"Shimon Doodkin","email":"helpmepro1@gmail.com","homepage":"http://doodkin.com"}],"author":{"name":"Neil Fraser","email":"root@neil.fraser.name","url":"http://neil.fraser.name/"},"name":"googlediff","description":"using jsinc and a simple index file. drop in the original code form google-diff-match-patch/ svn, thus easy to update.","version":"0.0.90","homepage":"http://code.google.com/p/google-diff-match-patch/","repository":{"type":"git","url":"git://github.com/shimondoodkin/googlediff.git"},"engines":{"node":">=0.2.5"},"dependencies":{"jsinc":"0.1.x"},"devDependencies":{},"licenses":[{"type":"Apache","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"_id":"googlediff@0.0.90","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"cff8b7c0cd67b86cbd38d228d7551f15af39952a","tarball":"https://registry.npmjs.org/googlediff/-/googlediff-0.0.90.tgz","integrity":"sha512-MmdOwsDf+LpckVEdldAP98Jal46vQIEBZ/olFnhn8BDpKwzCcNoZZqU+6mCCsDwBcyPJOp6XDpbFrjRMV502ZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCBg6+1/b6uVNWt/YBkwLqkuXEjnzuGOMTT6IaGTTLSAiEA3pdF+BfEDcpLDg01m+7Bna5DOz9vC07cf/w+ZdElF78="}]},"scripts":{}},"0.1.0":{"contributors":[{"name":"Shimon Doodkin","email":"helpmepro1@gmail.com"},{"name":"Ryan Graham","email":"r.m.graham@gmail.com"}],"author":{"name":"Neil Fraser","email":"root@neil.fraser.name","url":"http://neil.fraser.name/"},"name":"googlediff","description":"Simple packaging of Neil Fraser's original google-diff-match-patch","version":"0.1.0","homepage":"http://code.google.com/p/google-diff-match-patch/","repository":{"type":"git","url":"git://github.com/shimondoodkin/googlediff.git"},"scripts":{"test":"node test.js"},"engines":{"node":">=0.8.0"},"dependencies":{},"devDependencies":{},"licenses":[{"type":"Apache","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"readme":"node module for:\r\nhttp://code.google.com/p/google-diff-match-patch/ by Neil Fraser and contributors.\r\n\r\ndrop in the original code form svn of Neil Fraser's diff_match_patch.\r\nuses jsinc and a simple index.js file and thus it is easily updatable\r\n\r\nto update just copy in here the 'demos' and 'javascript' folders\r\n\r\nthis module is also awesome because you can use exactrly the same code on the serverside \r\nand on the client side.\r\n\r\nthis module is built using https://github.com/shimondoodkin/jsinc\r\n\r\nthe test tests just that the modue is usable.\r\n\r\nsee demos to learn how it works.\r\n\r\nby Shimon Dookdin\r\n\r\nmay be intalled with npm:\r\n\r\n    npm install googlediff\r\n\r\ndemo:\r\n    var diff_match_patch=require('googlediff');\r\n    \r\n    var dmp =new diff_match_patch();\r\n    function launch() {\r\n      var text1 = \"this is some test. blah blah blah\";\r\n      var text2 = \"this is other text. blah blah blah\";\r\n      //dmp.Diff_Timeout = 1; // set 0 for no timeout\r\n    \r\n      var ms_start = (new Date()).getTime();\r\n      var d = dmp.diff_main(text1, text2);\r\n      var ms_end = (new Date()).getTime();\r\n    \r\n      if (true) {\r\n        dmp.diff_cleanupSemantic(d);\r\n      }\r\n      if (false) {\r\n        dmp.Diff_EditCost = 4;\r\n        dmp.diff_cleanupEfficiency(d);\r\n      }\r\n      //var ds = dmp.diff_prettyHtml(d);\r\n      //console.log(ds + '<br/>Time: ' + (ms_end - ms_start) / 1000 + 's');\r\n      console.log(d)\r\n    }\r\n    launch()\r\n\r\noutput:\r\n    [ [ 0, 'this is ' ],\r\n      [ -1, 'some' ],\r\n      [ 1, 'other' ],\r\n      [ 0, ' te' ],\r\n      [ -1, 's' ],\r\n      [ 1, 'x' ],\r\n      [ 0, 't. blah blah blah' ] ]\r\n","readmeFilename":"README","_id":"googlediff@0.1.0","dist":{"shasum":"99acf05cc06223eb66c29008d81f9b2d18c2453d","tarball":"https://registry.npmjs.org/googlediff/-/googlediff-0.1.0.tgz","integrity":"sha512-71ZD3jCKckWRnh1DTPJABge1uZwwqMTUD1qyiao2VkAKvsO1keNf7/PGKXaDNGrq7EHOm1Z8TVT5jvG3SQuZAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtFeKlVaEt+kH9+XvmCQ+JdljIfvT5rpdEOyonzP+2RAiARnPx/ror3SI0U3hbNipcaYQPTkUZhYmSgjQAdnN+idg=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"shimondoodkin","email":"helpmepro1@gmail.com"},"maintainers":[{"name":"shimondoodkin","email":"helpmepro1@gmail.com"}]}},"maintainers":[{"name":"shimondoodkin","email":"helpmepro1@gmail.com"}],"time":{"modified":"2022-06-18T13:32:59.961Z","created":"2011-07-15T17:11:45.534Z","0.0.90":"2011-07-15T17:11:46.830Z","0.1.0":"2012-12-24T08:00:06.549Z"},"author":{"name":"Neil Fraser","email":"root@neil.fraser.name","url":"http://neil.fraser.name/"},"repository":{"type":"git","url":"git://github.com/shimondoodkin/googlediff.git"},"users":{"xieranmaya":true}}