{"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":"http://registry-npm.ywwl.com/detect-conflict/download/detect-conflict-1.0.0.tgz","integrity":"sha512-5eDjF+Y68Q3yUMoeckE3+gvgSyfu/QRPaNU39bYoSmz5d4LskbjsQZlXZlyQcxqQbsLiomK1rj2q6brBGjwTQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHcDf4Mtnm/zw5YyHxdHRivNdc3pEWExh7nqVisAvzs4AiEA5K3EBcmYS+EUWHW9AlV98nzMoXhsHrmbGTnvw47TvpQ="}],"size":1237,"noattachment":false,"key":"/detect-conflict/-/detect-conflict-1.0.0.tgz"},"directories":{},"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","publish_time":1414893859444,"_cnpm_publish_time":1414893859444,"dist-tags":{"latest":"1.0.1"}}