JSPM

detect-conflicts

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 784
  • Score
    100M100P100Q8963F
  • License MIT

Check for conflicts, and get prompted for action (when needed), before writing a file to disk.

Package Exports

  • detect-conflicts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (detect-conflicts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

detect-conflicts NPM version

Check for conflicts, and get prompted for action (when needed), before writing a file to disk.

Some of this code is based on the conflicter in yeoman-generator and the visual diff method in verb.

Install

Install with npm

$ npm i detect-conflicts --save

Usage

var detect = require('detect-conflicts');

var file = {path: 'fixtures/a.txt', contents: 'aaa'};
detect(file, function (res) {
  // `res` would be a user response. we'll only get to this
  // point if the user chooses not to abort. 
});
  • assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more
  • snippet: CLI and API for easily creating, reusing, sharing and generating snippets of code from the… more
  • template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… more
  • yeoman-generator: Rails-inspired generator system that provides scaffolding for your apps

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert BSD license Copyright (c) Google Released under the MIT license.


This file was generated by verb-cli on August 19, 2015.