JSPM

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

Generate plugin that gathers data from the user's environment to pre-populate data for hints.

Package Exports

  • generate-data

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 (generate-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

generate-data NPM version NPM monthly downloads NPM total downloads Linux Build Status

Generate plugin that gathers data from the user's environment to pre-populate data for hints.

Heads up!

This plugin modifies the app.cache.data object with "expanded" values. For example, the following author property from package.json:

{
  author: 'Jon Schlinkert (https://github.com/jonschlinkert)'
}

Is expanded to:

{
  author: {
    name: 'Jon Schlinkert',
    url: 'https://github.com/jonschlinkert'
  }
}

"original" data

Before data is modified, it's cloned and set on the app.cache.originalData object. You can reset the data object to this value by doing something like the following:

app.cache.data = app.cache.originalData;

Usage

Use as a plugin inside your generate generator:

module.exports = function(app) {
  app.use(require('generate-data'));
};

About

Contributing

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

Running tests

Install dev dependencies:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.4.2, on February 03, 2017.