Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generate-data

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-data

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

  • 0.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4K
increased by8.42%
Maintainers
2
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 03 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc