{"_id":"detect-conflict","_rev":"7-9f41ed307092e2e80affb2c84cd19cdd","name":"detect-conflict","description":"Small utility library that check if a new file content can be merged safely in the on-disk existing file.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"detect-conflict","version":"1.0.0","description":"Small utility library that check if a new file content can be merged safely in the on-disk existing file.","main":"index.js","files":["index.js"],"scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/SBoudrias/detect-conflict"},"author":{"name":"Simon Boudrias"},"license":"MIT","bugs":{"url":"https://github.com/SBoudrias/detect-conflict/issues"},"homepage":"https://github.com/SBoudrias/detect-conflict","dependencies":{},"devDependencies":{"mocha":"^1.21.5"},"gitHead":"bf0016eca3c94fdc3772136e4c0f307242b5714a","_id":"detect-conflict@1.0.0","_shasum":"eaa13c2554aa015f4b471174ab7925065e9d9a02","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"maintainers":[{"name":"sboudrias","email":"admin@simonboudrias.com"}],"dist":{"shasum":"eaa13c2554aa015f4b471174ab7925065e9d9a02","tarball":"https://registry.npmjs.org/detect-conflict/-/detect-conflict-1.0.0.tgz","integrity":"sha512-5eDjF+Y68Q3yUMoeckE3+gvgSyfu/QRPaNU39bYoSmz5d4LskbjsQZlXZlyQcxqQbsLiomK1rj2q6brBGjwTQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHcDf4Mtnm/zw5YyHxdHRivNdc3pEWExh7nqVisAvzs4AiEA5K3EBcmYS+EUWHW9AlV98nzMoXhsHrmbGTnvw47TvpQ="}]}},"1.0.1":{"name":"detect-conflict","version":"1.0.1","description":"Small utility library that check if a new file content can be merged safely in the on-disk existing file.","main":"index.js","files":["index.js"],"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/SBoudrias/detect-conflict.git"},"author":{"name":"Simon Boudrias"},"license":"MIT","bugs":{"url":"https://github.com/SBoudrias/detect-conflict/issues"},"homepage":"https://github.com/SBoudrias/detect-conflict","dependencies":{},"devDependencies":{"mocha":"^1.21.5"},"gitHead":"e76dace2df7c0950f2b32ee9bddddc98200d61ba","_id":"detect-conflict@1.0.1","_shasum":"088657a66a961c05019db7c4230883b1c6b4176e","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"dist":{"shasum":"088657a66a961c05019db7c4230883b1c6b4176e","tarball":"https://registry.npmjs.org/detect-conflict/-/detect-conflict-1.0.1.tgz","integrity":"sha512-AD1QARAKN95aIqOmob+HhpctYTzCbpXG1Nfc+xrxlh3j54YGd1ikIGqsGIHAB7Hjomz8iZy0sI4Mtzs66kH8Dg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcW5v9Pe4aUjrvHwAjzFw6ej3wKe9u7nFNmJwG+PJ3AwIhAOUPSrz9Ipkev7517l4YgRKHhGADkUqgQS4xUJi6ppTG"}]},"maintainers":[{"name":"sboudrias","email":"admin@simonboudrias.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/detect-conflict-1.0.1.tgz_1467670923112_0.9460013275966048"}}},"readme":"detect-conflict [![Build Status](https://travis-ci.org/SBoudrias/detect-conflict.svg?branch=master)](https://travis-ci.org/SBoudrias/detect-conflict)\n=================\n\nSmall utility library that check if a new file content can be merged safely in the on-disk existing file.\n\n## Usage\n\n### Example\n```js\nvar conflict = require('detect-conflict');\n\nvar isConflicting = conflict('some-file-name.js', 'var newContent;');\n```\n\nIt'll return `true` if a conflict is found, `false` otherwise.\n\n### API\n\n#### `conflict(filepath : string, contents : Buffer | String)`\n\nIf the `contents` is passed as a string, we assume it is utf8 encoded. Pass a `Buffer` if you want to compare special encoding.\n\nIf `filepath` points to a directory, we'll always return `true`.\n","maintainers":[{"name":"sboudrias","email":"admin@simonboudrias.com"}],"time":{"modified":"2022-06-15T01:54:02.911Z","created":"2014-11-02T02:04:19.444Z","1.0.0":"2014-11-02T02:04:19.444Z","1.0.1":"2016-07-04T22:22:03.727Z"},"homepage":"https://github.com/SBoudrias/detect-conflict","repository":{"type":"git","url":"git+https://github.com/SBoudrias/detect-conflict.git"},"author":{"name":"Simon Boudrias"},"bugs":{"url":"https://github.com/SBoudrias/detect-conflict/issues"},"license":"MIT","readmeFilename":"README.md","users":{"itonyyo":true,"zckrs":true}}