{"_id":"git-diff","_rev":"22-5a1ed438b3d409715d3c043eda4e2e99","name":"git-diff","dist-tags":{"latest":"2.0.7"},"versions":{"1.0.0":{"name":"git-diff","version":"1.0.0","author":"","license":"ISC","_id":"git-diff@1.0.0","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"dist":{"shasum":"762af0e8c184e364413345b466634c671abcddab","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-1.0.0.tgz","integrity":"sha512-gUMykpA+WOMO/O7YMFS3rPzllJyt6JV+J1/1os6YVbKXe2LBjeSbqSDgnvtWhFp7efot7DEMZTezYVaevlfUjA==","signatures":[{"sig":"MEUCIGE4LeyHqXtVushdU3GvmScVaxDD/YPS1K9P77xIV8QBAiEAy0FbIHPmbEbI71NzEX81CLLb+XkNovTQPn0PJfRmUYc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"762af0e8c184e364413345b466634c671abcddab","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"_npmVersion":"3.10.10","description":"","directories":{},"_nodeVersion":"6.10.0","_npmOperationalInternal":{"tmp":"tmp/git-diff-1.0.0.tgz_1503540119368_0.29766037059016526","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"git-diff","version":"1.0.1","keywords":["diff","git diff","string diff"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@1.0.1","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"0164e6345bade540039a50c9bc166bdcc2303fe9","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-1.0.1.tgz","integrity":"sha512-3P0FdGhnN1A2rNeZBtQ66GQny9M/TuieTCd/kpVocAExeJVuNDkpHJurQwREkS7Num7SiRotgA/GbFHMMwSSCQ==","signatures":[{"sig":"MEQCID2j/C599QxzoFvvD7dUOf6Q0O83KJkizxG2CtJtHgAhAiBfn0Dzk2bDhQkvaAWsiD+ewqoVnC5du02Kzvne05l2mg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0164e6345bade540039a50c9bc166bdcc2303fe9","engines":{"node":">= 4"},"gitHead":"45fc029ab08b738d73e19ab2cf9b4a901b37accb","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.10.0","dependencies":{"diff":"^3.3.0"},"devDependencies":{"chai":"^4.1.1","husky":"^0.14.3","mocha":"^3.5.0","sinon":"^3.2.1","eslint":"^4.5.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.13.0","npm-run-all":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-1.0.1.tgz_1503543010223_0.06795537751168013","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"git-diff","version":"1.0.2","keywords":["diff","git diff","string diff"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@1.0.2","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"9ac7ff944cafaa3d9774d6698d666bd0a1c11dbe","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-1.0.2.tgz","integrity":"sha512-6F7TCdh6uTxZbVO3mJmeKlAhCQq/eEX/JyK4frG9iI1lVdNsn5DIdZdd+NLQ6lNZnWoAaK45mmRig/CSVlv48g==","signatures":[{"sig":"MEUCIQC5NhqqqhDoXKFpC2TAUvIozjLKWClvYGd//FxY8HFakwIgGAsjigFcHYMqQWmCDfn94TurhZ//q28OzfXawAX7g6Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9ac7ff944cafaa3d9774d6698d666bd0a1c11dbe","engines":{"node":">= 4"},"gitHead":"ebe84c99b5b9d0b2daf36e3ad070a133369b402d","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.10.0","dependencies":{"diff":"^3.3.0"},"devDependencies":{"chai":"^4.1.1","husky":"^0.14.3","mocha":"^3.5.0","sinon":"^3.2.1","eslint":"^4.5.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.13.0","npm-run-all":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-1.0.2.tgz_1503543031734_0.735472971573472","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"git-diff","version":"1.0.3","keywords":["diff","git diff","string diff"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@1.0.3","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"b3c298499841fe5282519fb7238d6b501bfb09f5","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-1.0.3.tgz","integrity":"sha512-ft8VZmAKmY2JThU1touWQ7zhheZY6rIH+9MVQ4a09hfKjads0nP/uQzfaJ7Q0QPfoCdhwC3uZTfgg8rWfXgZuA==","signatures":[{"sig":"MEYCIQCRSse8EEr3HLzwYVYL094eIL65psfOp7drEVXm935m8QIhAM1xoaiA8xLXC5q34irVRkZHFHqfEkYdwFLM/tbuiXgV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b3c298499841fe5282519fb7238d6b501bfb09f5","engines":{"node":">= 4"},"gitHead":"ebe84c99b5b9d0b2daf36e3ad070a133369b402d","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.10.0","dependencies":{"diff":"^3.3.0"},"devDependencies":{"chai":"^4.1.1","husky":"^0.14.3","mocha":"^3.5.0","sinon":"^3.2.1","eslint":"^4.5.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.13.0","npm-run-all":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-1.0.3.tgz_1503543211978_0.9134333543479443","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"git-diff","version":"1.0.4","keywords":["diff","git diff","string diff"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@1.0.4","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"41672a9b1e44f3836aeb948b93f7d0dcef07c042","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-1.0.4.tgz","integrity":"sha512-l3mAJBM7CycsE75NogivdpkR0XGA3MtE5a7SoVkXO5oP/jaLupHP43eRXeyZeMi5cwCAA7MsWkJlRqfCQCx+VQ==","signatures":[{"sig":"MEQCICRM61H/R8F4Ml1CLBUPgJGxnXgC7LTM7mVenx2jzG7jAiB2A4tXqV3WbO6BNynVbfTvlPSFCnvP2vvz+weJZFfKkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"41672a9b1e44f3836aeb948b93f7d0dcef07c042","engines":{"node":">= 4"},"gitHead":"ea557570d9a90a86ec734d57840a0918ddb7b673","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.10.0","dependencies":{"diff":"^3.3.0","chalk":"^2.1.0"},"devDependencies":{"chai":"^4.1.1","husky":"^0.14.3","mocha":"^3.5.0","sinon":"^3.2.1","eslint":"^4.5.0","istanbul":"^0.4.5","coveralls":"2.11.16","readfilego":"^1.0.3","sinon-chai":"^2.13.0","npm-run-all":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-1.0.4.tgz_1503551388499_0.39502599788829684","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"git-diff","version":"1.0.5","keywords":["diff","differ","difference","git diff","git differ","git difference","string diff","string differ","string difference","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@1.0.5","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"e0c9df389c0ba5a8f3e88868cdf70ce935ab93d2","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-1.0.5.tgz","integrity":"sha512-MkVfJAjDNsS9loIqG1OiXlD63DcMqxA0++m7GaJhAwsLTp1jCLJxHscGt0+1vyoLuKDQ2dItJ45iPyfk8wj5Pw==","signatures":[{"sig":"MEYCIQCij0URefaQzVNDp6cj1MOOEzZJZ8NdWAl8GPbUlisxswIhAJZVSRdAzuvQZ3TfgHVPBNId/qAj052S5MsxKCJv7nOz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"e0c9df389c0ba5a8f3e88868cdf70ce935ab93d2","engines":{"node":">= 4"},"gitHead":"07a119f13e835a58d7d483adce74cfa70ce640b7","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.11.3","dependencies":{"diff":"^3.3.1","chalk":"^2.1.0","shelljs":"^0.7.8","loglevel":"^1.5.0","shelljs.exec":"^1.1.3"},"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^3.5.3","sinon":"^3.3.0","eslint":"^4.7.2","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.13.0","data-driven":"^1.3.0","npm-run-all":"^4.1.1","readfile-go":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-1.0.5.tgz_1506400171067_0.00978944799862802","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"git-diff","version":"1.0.6","keywords":["diff","differ","difference","git diff","git differ","git difference","string diff","string differ","string difference","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@1.0.6","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"c0109d48b3be7adca5c591de6384b57b27fb22c1","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-1.0.6.tgz","integrity":"sha512-UBhNEUEAQTdBJaRkhjJtj5Aoz/bko3GBy4G5gSuUwKuingaPPhjpqq8FFYvVT5ZSC8VBzp+suLHAT1DYEh55eA==","signatures":[{"sig":"MEQCIDdULY+mlpSPWrtaquH6OJgFcI1m5qSq5B+tz5W8heVTAiBI/ESJ2z1lyeEdkVoGkhIWAEXjDDciin8LuVnJw+m1Lg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"sync.js","_from":".","_shasum":"c0109d48b3be7adca5c591de6384b57b27fb22c1","engines":{"node":">= 4"},"gitHead":"547ab0f2d85bf17997fa5f17a3fd218c2b428bfb","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.11.3","dependencies":{"diff":"^3.3.1","chalk":"^2.1.0","shelljs":"^0.7.8","loglevel":"^1.5.0","shelljs.exec":"^1.1.3"},"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^3.5.3","sinon":"^3.3.0","eslint":"^4.7.2","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.13.0","data-driven":"^1.3.0","npm-run-all":"^4.1.1","readfile-go":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-1.0.6.tgz_1506401220466_0.7303946714382619","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"git-diff","version":"1.0.7","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@1.0.7","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"9354092d98387ad155ea314093f2ac0000d77f72","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-1.0.7.tgz","integrity":"sha512-8fz+vy2x0zl3X01B6rTQY9djF5ztW8SQaOWDLmV3Rm+XEcI4EN8JKEIDnAJzM4K91clMf5TuqYMClt14S9mvQA==","signatures":[{"sig":"MEUCIC19gEqUng4JjkpqW2HyWLmKhAOO6E5NoZuPZi5PRpxNAiEAgr2pIi0ctthQ8xLfHq+AsYjBOBz3Zu/4YNwpd6rU850=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"sync.js","_from":".","_shasum":"9354092d98387ad155ea314093f2ac0000d77f72","engines":{"node":">= 4.0.0"},"gitHead":"7a40af205b0e8250d0c3326c6a750404575d069c","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.11.3","dependencies":{"diff":"^3.3.1","chalk":"^2.1.0","shelljs":"^0.7.8","loglevel":"^1.5.0","shelljs.exec":"^1.1.5"},"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^4.0.0","sinon":"^4.0.0","eslint":"^4.8.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.14.0","chai-string":"^1.4.0","data-driven":"^1.3.0","npm-run-all":"^4.1.1","readfile-go":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-1.0.7.tgz_1507084976467_0.7832514797337353","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"git-diff","version":"2.0.0","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@2.0.0","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"c27f39e9b58b7ad144693119e09dc4cabeb5abf0","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-2.0.0.tgz","integrity":"sha512-DvufBwHozEhutS6QBiyQR9B4wrAYGI5oNUVe4XcBLw+oeWHXri0VGfWrRG23RLNm+mdMpOi3MWtGLvEXalnNEw==","signatures":[{"sig":"MEUCIQCdj07YWyFdi+MbUOuo0Ra0/nkLAULnJ4bYSne/7tyIVAIgWOMnd+3IRkZg3lUYhFzLAFdvyAh4b2NWt/lY7EB7Z/A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"sync.js","_from":".","_shasum":"c27f39e9b58b7ad144693119e09dc4cabeb5abf0","engines":{"node":">= 4.0.0"},"gitHead":"f1a6cdfcc6c6e2c0836fa9cfa3f9286b882f0b06","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.11.3","dependencies":{"diff":"^3.3.1","chalk":"^2.1.0","shelljs":"^0.7.8","loglevel":"^1.5.0","shelljs.exec":"^1.1.5"},"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^4.0.0","sinon":"^4.0.1","eslint":"^4.8.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.14.0","chai-string":"^1.4.0","data-driven":"^1.3.0","npm-run-all":"^4.1.1","readfile-go":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-2.0.0.tgz_1507150808497_0.9103702416177839","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"git-diff","version":"2.0.1","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@2.0.1","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"c3b8fa9a810ade7437d2ce1ff9c4fef74ff1de04","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-2.0.1.tgz","integrity":"sha512-67XGqHLhx5YtWFU3Y4GfD9C8Jexhn2sHzXOmvDvT+p724Ft/QNCm57dlvxoINeDAivrl8PGP7MPNGDf4wZ2V+A==","signatures":[{"sig":"MEQCIB1MmEKE2PEmuIq8w1t+s6MBMwxf+U+QPhSmTsT5yz5nAiA/zADscyxuBgQFnF4nCim6pOrsCK9bgYMKwMWDw1ZbbQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"sync.js","_from":".","_shasum":"c3b8fa9a810ade7437d2ce1ff9c4fef74ff1de04","engines":{"node":">= 4.0.0"},"gitHead":"61a11e4be5c8b556c115a8c8641f0ba08e2e13dc","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.11.3","dependencies":{"diff":"^3.3.1","chalk":"^2.1.0","shelljs":"^0.7.8","loglevel":"^1.5.0","shelljs.exec":"^1.1.6"},"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^4.0.0","sinon":"^4.0.1","eslint":"^4.8.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.14.0","chai-string":"^1.4.0","data-driven":"^1.3.0","npm-run-all":"^4.1.1","readfile-go":"^1.0.5"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-2.0.1.tgz_1507181003936_0.38182538002729416","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"git-diff","version":"2.0.2","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@2.0.2","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"08538eaba553bca6f70795282838673e976873fa","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-2.0.2.tgz","integrity":"sha512-NOvbNfgr1YRyM96FjGoNYHwZdry0DsS3HiUZJmwzTXfqXo8KedDBLA91vKzdjrEuqWASqWasDRrrk74zAX2h2Q==","signatures":[{"sig":"MEQCID6xS+GdPjfzMukfBN0bv4/VVmaqbBgqq8HH6O3DBSbbAiAJgkFO/0HpREp6c0HBy4T9/FG4XsKxICKwV3ouTebQrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"sync.js","_from":".","_shasum":"08538eaba553bca6f70795282838673e976873fa","engines":{"node":">= 4.0.0"},"gitHead":"9f048b7872d8db75d19c32d5cd7844ecb29f72e8","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.11.3","dependencies":{"diff":"^3.4.0","chalk":"^2.1.0","shelljs":"^0.7.8","loglevel":"^1.5.1","shelljs.exec":"^1.1.7"},"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^4.0.1","sinon":"^4.0.1","eslint":"^4.8.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.14.0","chai-string":"^1.4.0","data-driven":"^1.4.0","npm-run-all":"^4.1.1","readfile-go":"^1.0.5"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-2.0.2.tgz_1507583303658_0.08275795332156122","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"git-diff","version":"2.0.3","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@2.0.3","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"00c0f7dcec37c73aa16bf59046472ed9e8e0620e","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-2.0.3.tgz","integrity":"sha512-yfF+6FtICQrCK7D0nbi3221hFuLrUS6Y+iLCaUg0aU1i0HJHTVaXgC2YLvIhIzSHfGl5FmmoP3Ro5bb3Kg3rxA==","signatures":[{"sig":"MEUCICBMU5QUNwPwHpD0415xaYAX5rbh7RIRzHBhElv7FqQTAiEAjlLx+MAe4ZqjFM20Dtu41P1cCFPNocYldiS706Ry7bM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"sync.js","_from":".","_shasum":"00c0f7dcec37c73aa16bf59046472ed9e8e0620e","engines":{"node":">= 4.0.0"},"gitHead":"b3513c4a424bb0045ba47621b2a36427e2f9be47","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.11.3","dependencies":{"diff":"^3.4.0","chalk":"^2.1.0","shelljs":"^0.7.8","loglevel":"^1.5.1","shelljs.exec":"^1.1.7"},"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^4.0.1","sinon":"^4.0.1","eslint":"^4.9.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.14.0","chai-string":"^1.4.0","data-driven":"^1.4.0","npm-run-all":"^4.1.1","readfile-go":"^1.0.5"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-2.0.3.tgz_1508036972885_0.29890202381648123","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"git-diff","version":"2.0.4","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@2.0.4","maintainers":[{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"ae4ec0096f28c9faf1bcf7ca91c27645910fe667","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-2.0.4.tgz","integrity":"sha512-+8v3d/CmTBZCdXdGRYwRo6u6uyMefjHEED6vQumJIwBzQhnlaAPEqYpzpBRophltVAYFTBUtn8uxQw0Qyv/sjw==","signatures":[{"sig":"MEYCIQChQLQcgMq3zptHkgQl9sVK0HWTDCkD3o4X5qLCUMh1ggIhAIuKl88vVaNhJPeje04NNHp30JmkFtsxHlIDlIuVDwgp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"sync.js","_from":".","_shasum":"ae4ec0096f28c9faf1bcf7ca91c27645910fe667","engines":{"node":">= 4.0.0"},"gitHead":"157cbc5fc98e5ad0980ea9379f6d7e43a49668ee","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"daniel-lewis-bsc-hons","email":"dan.lewis.web@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"3.10.10","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"6.11.3","dependencies":{"diff":"^3.4.0","chalk":"^2.1.0","shelljs":"^0.7.8","loglevel":"^1.5.1","shelljs.exec":"^1.1.7"},"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^4.0.1","sinon":"^4.0.1","eslint":"^4.9.0","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^2.14.0","chai-string":"^1.4.0","data-driven":"^1.4.0","npm-run-all":"^4.1.1","readfile-go":"^1.0.5"},"_npmOperationalInternal":{"tmp":"tmp/git-diff-2.0.4.tgz_1508110863773_0.30428804317489266","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"git-diff","version":"2.0.5","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@2.0.5","maintainers":[{"name":"danday74","email":"daniellewis777@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"cb5082c5fb2538d60c8b7856f9f28c6f33f065e4","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-2.0.5.tgz","fileCount":48,"integrity":"sha512-MJUtGzUQ88pdllTO+AwcU4TUBkJUjzCnnAQ94zurHTRUHbE1tq3eOaTClzbBIE7Jrwk8Z3yaav6toTijS82VXg==","signatures":[{"sig":"MEQCIBvgPT4ltrVfe8e4axqRrIGPOmR8jhNIShCs3wxaSZY5AiANRle2ATrIHX1ci2mrzIeKrGETXjGCqxmy/TaNjREJ/g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":134176},"main":"sync.js","engines":{"node":">= 4.8.0"},"gitHead":"4a4ec4d17a0deb99d57485dbc8f22a9dc2732b4e","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"danday74","email":"daniellewis777@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"5.7.1","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"8.9.4","dependencies":{"diff":"^3.5.0","chalk":"^2.3.2","shelljs":"^0.8.1","loglevel":"^1.6.1","shelljs.exec":"^1.1.7"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^5.0.4","sinon":"^4.4.2","eslint":"^4.18.2","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^3.0.0","chai-string":"^1.4.0","data-driven":"^1.4.0","npm-run-all":"^4.1.2","readfile-go":"^1.0.5"},"_npmOperationalInternal":{"tmp":"tmp/git-diff_2.0.5_1520567830018_0.3527252609927025","host":"s3://npm-registry-packages"}},"2.0.6":{"name":"git-diff","version":"2.0.6","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"author":{"url":"Hons","name":"Daniel Lewis BSc"},"license":"ISC","_id":"git-diff@2.0.6","maintainers":[{"name":"danday74","email":"daniellewis777@gmail.com"}],"homepage":"https://github.com/danday74/git-diff#readme","bugs":{"url":"https://github.com/danday74/git-diff/issues"},"dist":{"shasum":"4a8ece670d64d1f9f4e68191ad8b1013900f6c1e","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-2.0.6.tgz","fileCount":48,"integrity":"sha512-/Iu4prUrydE3Pb3lCBMbcSNIf81tgGt0W1ZwknnyF62t3tHmtiJTRj0f+1ZIhp3+Rh0ktz1pJVoa7ZXUCskivA==","signatures":[{"sig":"MEUCIFj7u/YblyPDf+esCxFODlltOstMuxKKjLxMJxNBwGCmAiEAu+LjvJSDG7CsWi1KhngpB5ybbPcVHP4UNkfvTYYU7Gw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":134176},"main":"sync.js","engines":{"node":">= 4.8.0"},"gitHead":"a85a649badc4c6bba991e87e82382b7d3cdd6634","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","build":"npm-run-all test enforcer","prepush":"npm run build","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100"},"_npmUser":{"name":"danday74","email":"daniellewis777@gmail.com"},"repository":{"url":"git+https://github.com/danday74/git-diff.git","type":"git"},"_npmVersion":"5.7.1","description":"Returns the git diff of two strings","directories":{},"_nodeVersion":"8.9.4","dependencies":{"diff":"^3.5.0","chalk":"^2.3.2","shelljs":"^0.8.1","loglevel":"^1.6.1","shelljs.exec":"^1.1.7"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","husky":"^0.14.3","mocha":"^5.0.4","sinon":"^4.4.2","eslint":"^4.18.2","istanbul":"^0.4.5","coveralls":"2.11.16","sinon-chai":"^3.0.0","chai-string":"^1.4.0","data-driven":"^1.4.0","npm-run-all":"^4.1.2","readfile-go":"^1.0.5"},"_npmOperationalInternal":{"tmp":"tmp/git-diff_2.0.6_1520568575648_0.5218894546948654","host":"s3://npm-registry-packages"}},"2.0.7":{"name":"git-diff","version":"2.0.7","description":"Returns the git diff of two strings","author":{"name":"Daniel Lewis BSc","url":"Hons"},"license":"ISC","main":"sync.js","scripts":{"test":"istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha","enforcer":"istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100","build":"npm-run-all test enforcer","prepush":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/danday74/git-diff.git"},"bugs":{"url":"https://github.com/danday74/git-diff/issues"},"homepage":"https://github.com/danday74/git-diff#readme","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"dependencies":{"chalk":"^2.3.2","diff":"^3.5.0","loglevel":"^1.6.1","shelljs":"^0.8.1","shelljs.exec":"^1.1.7"},"devDependencies":{"chai":"^4.1.2","chai-string":"^1.4.0","coveralls":"2.11.16","data-driven":"^1.4.0","eslint":"^4.18.2","husky":"^0.14.3","istanbul":"^0.4.5","mocha":"^5.0.4","npm-run-all":"^4.1.2","readfile-go":"^1.0.5","sinon":"^4.4.2","sinon-chai":"^3.0.0"},"engines":{"node":">= 4.8.0"},"gitHead":"f0d2238d78f6863f3544d2b84e498d5a92ddf4cb","_id":"git-diff@2.0.7","_nodeVersion":"24.7.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-/+vyWaKNUJLcVT+tm5Hsly2xDcIs49EkZstxqW7ap1ZiZ0BECviLK1iv9/f4cGhlKBokeAf61QkTDnL88H+Uhg==","shasum":"bda51063250e07af3fec73c26e3a7d67135f0329","tarball":"https://registry.npmjs.org/git-diff/-/git-diff-2.0.7.tgz","fileCount":47,"unpackedSize":73216,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD0FvlDP6MSGBrO/BRAEYNZVLxGGU2VuawwSqYVhiuOMwIhALLUSFU3D1Wl0hk+sbbBIOVfe51qHwskCg+GP+pY7Oih"}]},"_npmUser":{"name":"zachariahm","email":"zachariah@aplosai.com"},"directories":{},"maintainers":[{"name":"danday74","email":"daniellewis777@gmail.com"},{"name":"zachariahm","email":"zachariah@aplosai.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-diff_2.0.7_1782449757417_0.7848149645263842"},"_hasShrinkwrap":false}},"time":{"created":"2017-08-24T02:02:00.374Z","modified":"2026-06-26T04:55:57.681Z","1.0.0":"2017-08-24T02:02:00.374Z","1.0.1":"2017-08-24T02:50:11.321Z","1.0.2":"2017-08-24T02:50:33.497Z","1.0.3":"2017-08-24T02:53:33.014Z","1.0.4":"2017-08-24T05:09:49.531Z","1.0.5":"2017-09-26T04:29:32.106Z","1.0.6":"2017-09-26T04:47:01.506Z","1.0.7":"2017-10-04T02:42:57.704Z","2.0.0":"2017-10-04T21:00:09.779Z","2.0.1":"2017-10-05T05:23:25.127Z","2.0.2":"2017-10-09T21:08:24.916Z","2.0.3":"2017-10-15T03:09:34.096Z","2.0.4":"2017-10-15T23:41:04.983Z","2.0.5":"2018-03-09T03:57:10.159Z","2.0.6":"2018-03-09T04:09:36.019Z","2.0.7":"2026-06-26T04:55:57.584Z"},"bugs":{"url":"https://github.com/danday74/git-diff/issues"},"author":{"name":"Daniel Lewis BSc","url":"Hons"},"license":"ISC","homepage":"https://github.com/danday74/git-diff#readme","keywords":["diff","differ","difference","git-diff","git-differ","git-difference","git diff","git differ","git difference","string-diff","string-differ","string-difference","string diff","string differ","string difference","diff-tool","differ-tool","difference-tool","diff tool","differ tool","difference tool","xxxxxxxxxx","difftool","git-difftool","git-diff-tool","git difftool","git diff tool"],"repository":{"type":"git","url":"git+https://github.com/danday74/git-diff.git"},"description":"Returns the git diff of two strings","maintainers":[{"name":"danday74","email":"daniellewis777@gmail.com"},{"name":"zachariahm","email":"zachariah@aplosai.com"}],"readme":"# git-diff\n\n<br>[![Linux Build](https://img.shields.io/travis/danday74/git-diff/master.svg?label=linux)](https://travis-ci.org/danday74/git-diff)\n[![Windows Build](https://img.shields.io/appveyor/ci/danday74/git-diff/master.svg?label=windows)](https://ci.appveyor.com/project/danday74/git-diff)\n[![Coverage Status](https://coveralls.io/repos/github/danday74/git-diff/badge.svg)](https://coveralls.io/github/danday74/git-diff)\n<br>[![npm](https://img.shields.io/npm/v/git-diff.svg)](https://www.npmjs.com/package/git-diff)\n[![Dependencies Status](https://david-dm.org/danday74/git-diff/status.svg)](https://david-dm.org/danday74/git-diff)\n[![npm](https://img.shields.io/npm/dm/git-diff.svg)](https://www.npmjs.com/package/git-diff)\n[![node](https://img.shields.io/node/v/git-diff.svg)](https://www.npmjs.com/package/git-diff)\n\n**Returns the git diff of two strings**\n\n\n\n<br>\n\n## Introduction\n\ngit-diff will use ```git``` (if installed) and ```printf``` (if available) to get the real git diff of two strings, viz the actual diff output produced by git itself.\n\nAs a fallback, if either command is unavailable, git-diff will instead use the [diff](https://www.npmjs.com/package/diff) module to produce a very good fake git diff.\n\nIf desired, you may then console.log the returned git diff. An example of **actual output**:\n\n![Line diff v Word diff](diffs.png \"Line diff v Word diff\")\n\n\n\n<br>\n\n## Usage\n\n`npm install --save git-diff`\n\ngit-diff takes 3 arguments, the **old string** to diff, the **new string** to diff and optionally an [options object](#options-object)\n\ngit-diff returns the git difference or `undefined` where there is no difference.\n\nString diff example usage:\n\n```javascript 1.5\nvar gitDiff = require('git-diff')\nvar oldStr = 'fred\\nis\\nfunny\\n'\nvar newStr = 'paul\\nis\\nfunny\\n'\nvar diff = gitDiff(oldStr, newStr)\n\nvar assert = require('assert')\nassert.equal(diff, '@@ -1,3 +1,3 @@\\n-fred\\n+paul\\n is\\n funny\\n')\n```\n\nFile diff example usage:\n\n```javascript 1.5\nvar gitDiff = require('git-diff')\nvar readFileGo = require('readfile-go') // or your preferred file reader\nvar oldStr = readFileGo(__dirname + '/oldStr.txt')\nvar newStr = readFileGo(__dirname + '/newStr.txt')\nvar diff = gitDiff(oldStr, newStr)\n```\n\n\n\n<br>\n\n## Options object\n\nAvailable options are:\n\ncolor | [flags](#flags-string--null-) | [forceFake](#forcefake-boolean-) | noHeaders | [save](#save-boolean-) | wordDiff\n\nDefault options are:\n\n```javascript 1.5\nvar options = {\n  color: false,      // Add color to the git diff returned?\n  flags: null,       // A space separated string of git diff flags from https://git-scm.com/docs/git-diff#_options\n  forceFake: false,  // Do not try and get a real git diff, just get me a fake? Faster but may not be 100% accurate\n  noHeaders: false,  // Remove the ugly @@ -1,3 +1,3 @@ header?\n  save: false,       // Remember the options for next time?\n  wordDiff: false    // Get a word diff instead of a line diff?\n}\n```\n\nFurther assistance is given below for options that are not self explanatory.\n\n\n\n<br>\n\n#### **flags** (string | null) [![top](top.png)](#options-object)\n\nThe flags option allows you to use any [git diff flags](https://git-scm.com/docs/git-diff#_options)\n\nThis only applies to real git diffs and will not effect the output if it is fake.\n\nAn example to illustrate:\n\n```javascript 1.5\nvar gitDiff = require('git-diff')\nvar oldStr = 'fred\\n   is   \\nfunny\\n'\nvar newStr = 'paul\\nis\\n   funny   \\n'\nvar diff = gitDiff(oldStr, newStr, {flags: '--diff-algorithm=minimal --ignore-all-space'})\n\nvar assert = require('assert')\nassert.equal(diff, '@@ -1,3 +1,3 @@\\n-fred\\n+paul\\n is\\n    funny   \\n')\n```\n\nHere, the use of ```--ignore-all-space``` prevents a difference being reported on the 2nd and 3rd lines.\n\n\n\n<br>\n\n#### **forceFake** (boolean) [![top](top.png)](#options-object)\n\ngit-diff will initially attempt to use ```git``` and ```printf``` to get the real git diff.\n\nIf it cannot, it instead returns a very good fake git diff.\n\nA fake git diff is faster to produce but may not be 100% representative of a real git diff.\n\nThe [flags](#flags-string--null-) option is ignored when faking and fake diffs never have a header.\n\nHowever, if a fake is good enough and speed is of the essence then you may want to force a fake git diff.\n\nThe forceFake option allows you to do exactly that:\n\n```javascript 1.5\nvar gitDiff = require('git-diff')\nvar oldStr = 'fred\\nis\\nfunny\\n'\nvar newStr = 'paul\\nis\\nfunny\\n'\nvar diff = gitDiff(oldStr, newStr, {forceFake: true})\n\nvar assert = require('assert')\nassert.equal(diff, '-fred\\n+paul\\n is\\n funny\\n')\n```\n\n\n\n<br>\n\n#### **save** (boolean) [![top](top.png)](#options-object)\n\nIts annoying to keep passing the same options every time.\n\ngit-diff, if instructed to do so, will remember previously used options for you.\n\nWhen the `{save: true}` option is used in a call to git-diff subsequent calls remember the options.\n\n```javascript 1.5\nvar gitDiff = require('git-diff')\nvar oldStr = 'fred\\nis\\nfunny\\n'\nvar newStr = 'paul\\nis\\nfunny\\n'\nvar diff1 = gitDiff(oldStr, newStr, {save: true, wordDiff: true})\nvar diff2 = gitDiff(oldStr, newStr)\n\nvar assert = require('assert')\nassert.equal(diff1, '@@ -1,3 +1,3 @@\\n[-fred-]{+paul+}\\nis\\nfunny\\n')\nassert.equal(diff2, '@@ -1,3 +1,3 @@\\n[-fred-]{+paul+}\\nis\\nfunny\\n')\n```\n\nHere, the second call remembers that the wordDiff option is on. `{wordDiff: true}` is now the default.\n\n\n\n<br>\n\n## Async execution\n\ngit-diff offers a promise based async solution:\n\n```javascript 1.5\nvar gitDiff = require('git-diff/async')\nvar oldStr = 'fred\\nis\\nfunny\\n'\nvar newStr = 'paul\\nis\\nfunny\\n'\ngitDiff(oldStr, newStr).then(function(diff) {\n  var assert = require('assert')\n  assert.equal(diff, '@@ -1,3 +1,3 @@\\n-fred\\n+paul\\n is\\n funny\\n')\n})\n```\n\n\n\n<br>\n\n## FAQs\n\n> **How good is the fake git diff?**<br>\n> The diff module used for the fake diff does not use the same difference algorithm as git.\n> As such, a line diff is likely to be identical to a git line diff whereas a word diff will have some variance.\n\n> **How can I tell whether the returned git diff is real or fake?**<br>\n> If the ```@@ -1,3 +1,3 @@``` header is present then the returned git diff is real.<br>\n> If the header is absent then either the [noHeaders](#options-object) option is on or the returned git diff is fake.\n\n> **Will my environment produce a real or fake git diff?**<br>\n> Linux and mac have the coveted ```printf``` command available. On Windows [git bash](https://git-for-windows.github.io) makes ```printf``` accessible.<br>\n> Assuming that git is installed, any of these environments will produce a real git diff.\n\n\n\n<br>\n\n## Author says\n\nWhat's the **difference** between how God treats the righteous and the wicked?\n\n> And God saw that the light was good. And God separated the light from the darkness. [Genesis 1:4 ESV](https://www.biblegateway.com/passage/?search=Genesis+1%3A4&version=ESV)\n\nAnd He will do it again:\n\n> Let both grow together until the harvest, and at harvest time I will tell the reapers, “Gather the weeds first and bind them in bundles to be burned, but gather the wheat into my barn.” [Matthew 13:30 ESV](https://www.biblegateway.com/passage/?search=matthew+13%3A30&version=ESV)\n\nMuch love :D\n\n\n\n<br><br><br><br><br>\n","readmeFilename":"README.md"}