
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
generate-ask
Advanced tools
Adds user prompts to your generator for getting data that is commonly for rendering templates, like author name, project name, etc.
Adds user prompts to your generator for getting data that is commonly for rendering templates, like author name, project name, etc.
Install with npm:
$ npm i generate-ask --save
getting started
If you're not already familiar with generate, you might find generate's getting started guide useful before continuining.
extend your generator
Extend your generator with features and settings from generate-ask:
module.exports = function(app) {
app.extendWith(require('generate-ask'));
// do generator stuff
};
That's it! you should now be able to use any features from generate-ask as if they were created in your own generator.
Lazily-extend your generator
Call the ask to lazily add the features and settings from generate-ask.
This approach offers the advantage of choosing when and where to invoke generate-ask inside your own generator.
module.exports = function(app) {
app.extendWith(require('generate-ask'));
app.task('foo', function(cb) {
// do task stuff
cb();
});
// before running task `foo`, you MUST RUN the `ask`
// to get the features from generate-ask loaded onto your
// generator's instance
app.task('default', ['ask', 'foo']);
};
This generator works with:
Generate readme and API documentation with verb:
$ npm i -d && npm run docs
Or, if verb is installed globally:
$ verb
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb, v0.9.0, on February 20, 2016.
FAQs
Adds user prompts to your generator for getting data that is commonly for rendering templates, like author name, project name, etc.
The npm package generate-ask receives a total of 1 weekly downloads. As such, generate-ask popularity was classified as not popular.
We found that generate-ask demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.