{"_id":"detect-conflicts","_rev":"77013","name":"detect-conflicts","description":"Check for conflicts, and get prompted for action (when needed), before writing a file to disk.","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:24:47.000Z","created":"2015-08-07T18:21:32.941Z","0.1.1":"2015-08-19T20:45:39.213Z","0.1.0":"2015-08-07T18:21:32.941Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/detect-conflicts.git"},"versions":{"0.1.1":{"name":"detect-conflicts","description":"Check for conflicts, and get prompted for action (when needed), before writing a file to disk.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/detect-conflicts","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/detect-conflicts.git"},"bugs":{"url":"https://github.com/jonschlinkert/detect-conflicts/issues"},"license":"MIT","files":["index.js","lib/"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"ansi-bold":"^0.1.1","ansi-cyan":"^0.1.1","ansi-gray":"^0.1.1","ansi-green":"^0.1.1","ansi-red":"^0.1.1","ansi-yellow":"^0.1.1","diff":"^2.0.2","error-symbol":"^0.1.0","inquirer":"^0.9.0","is-binary":"^0.1.0","lazy-cache":"^0.2.2","success-symbol":"^0.1.0","warning-symbol":"^0.1.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["check","compare","comparison","conflict","conflicts","content","contents","detect","diff","file","filepath","string","verify"],"verb":{"related":{"list":["yeoman-generator","snippet","assemble","template"]}},"gitHead":"06439d78e460aa5acf08efb46d1989afe626096b","_id":"detect-conflicts@0.1.1","_shasum":"8789aebab95d525fe3515ac0382287267523186d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8789aebab95d525fe3515ac0382287267523186d","size":4009,"noattachment":false,"key":"/detect-conflicts/-/detect-conflicts-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/detect-conflicts/download/detect-conflicts-0.1.1.tgz"},"directories":{},"publish_time":1440017139213,"_cnpm_publish_time":1440017139213,"_hasShrinkwrap":false,"deprecated":"Package has been renamed to conflicts, please use that instead."},"0.1.0":{"name":"detect-conflicts","description":"Check for conflicts, and get prompted for action (when needed), before writing a file to disk.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/detect-conflicts","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/detect-conflicts.git"},"bugs":{"url":"https://github.com/jonschlinkert/detect-conflicts/issues"},"license":"MIT","files":["index.js","lib/"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"ansi-bold":"^0.1.1","ansi-cyan":"^0.1.1","ansi-gray":"^0.1.1","ansi-green":"^0.1.1","ansi-red":"^0.1.1","ansi-yellow":"^0.1.1","diff":"^1.4.0","error-symbol":"^0.1.0","inquirer":"^0.9.0","is-binary":"^0.1.0","lazy-cache":"^0.1.0","success-symbol":"^0.1.0","warning-symbol":"^0.1.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["check","compare","comparison","conflict","conflicts","content","contents","detect","diff","file","filepath","string","verify"],"verb":{"related":{"list":["yeoman-generator","snippet","assemble","template"]}},"gitHead":"be4870435f60c489e793634db593d878c3d62eac","_id":"detect-conflicts@0.1.0","_shasum":"19e415d91ce0322a2cd89c1dde00e103140db627","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"19e415d91ce0322a2cd89c1dde00e103140db627","size":3976,"noattachment":false,"key":"/detect-conflicts/-/detect-conflicts-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/detect-conflicts/download/detect-conflicts-0.1.0.tgz"},"directories":{},"publish_time":1438971692941,"_cnpm_publish_time":1438971692941,"_hasShrinkwrap":false}},"readme":"# detect-conflicts [![NPM version](https://badge.fury.io/js/detect-conflicts.svg)](http://badge.fury.io/js/detect-conflicts)\n\n> Check for conflicts, and get prompted for action (when needed), before writing a file to disk.\n\nSome of this code is based on the [conflicter in yeoman-generator](https://github.com/yeoman/generator) and the [visual diff method in verb](https://github.com/verbose/verb).\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i detect-conflicts --save\n```\n\n## Usage\n\n```js\nvar detect = require('detect-conflicts');\n\nvar file = {path: 'fixtures/a.txt', contents: 'aaa'};\ndetect(file, function (res) {\n  // `res` would be a user response. we'll only get to this\n  // point if the user chooses not to abort. \n});\n```\n\n## Related projects\n\n* [assemble](http://assemble.io): Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… [more](http://assemble.io)\n* [snippet](https://github.com/jonschlinkert/snippet): CLI and API for easily creating, reusing, sharing and generating snippets of code from the… [more](https://github.com/jonschlinkert/snippet)\n* [template](https://github.com/jonschlinkert/template): Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… [more](https://github.com/jonschlinkert/template)\n* [yeoman-generator](http://yeoman.io): Rails-inspired generator system that provides scaffolding for your apps\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/detect-conflicts/issues/new)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\n[BSD license](http://opensource.org/licenses/bsd-license.php)\nCopyright (c) Google\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 19, 2015._","_attachments":{},"homepage":"https://github.com/jonschlinkert/detect-conflicts","bugs":{"url":"https://github.com/jonschlinkert/detect-conflicts/issues"},"license":"MIT"}