Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including yeoman-environment with all npm packages installed. Try it out:

var yeomanEnvironment = require("yeoman-environment")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

yeoman-environment v2.10.3

Handles the lifecyle and bootstrapping of generators in a specific environment

Yeoman Environment

npm Build Status Coverage Status Gitter

Handles the lifecycle and bootstrapping of generators in a specific environment

It provides a high-level API to discover, create and run generators, as well as further tuning of where and how a generator is resolved.

Install

$ npm install yeoman-environment

Usage

Full documentation available here.

const yeoman = require('yeoman-environment');
const env = yeoman.createEnv();

// The #lookup() method will search the user computer for installed generators
// The search if done from the current working directory
env.lookup(() => {
  env.run('angular', {'skip-install': true}, err => {
    console.log('done');
  });
});

For advance usage, see our API documentation.

License

BSD-2-Clause © Yeoman

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free