
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
generate-data
Advanced tools
Generate plugin that gathers data from the user's environment to pre-populate data for hints.
Generate plugin that gathers data from the user's environment to pre-populate data for hints.
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;
Use as a plugin inside your generate generator:
module.exports = function(app) {
app.use(require('generate-data'));
};
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Install dev dependencies:
$ npm install && npm test
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.4.2, on February 03, 2017.
FAQs
Generate plugin that gathers data from the user's environment to pre-populate data for hints.
The npm package generate-data receives a total of 826 weekly downloads. As such, generate-data popularity was classified as not popular.
We found that generate-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.