yeoman-environment
Version:
Handles the lifecyle and bootstrapping of generators in a specific environment
35 lines (21 loc) • 1.44 kB
Markdown
[](http://badge.fury.io/js/yeoman-environment) [](https://github.com/yeoman/environment/actions/workflows/ci.yml) [](https://coveralls.io/github/yeoman/environment?branch=master) [](https://gitter.im/yeoman/yeoman)
> 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.
```
$ npm install yeoman-environment
```
Full documentation available [here](http://yeoman.io/authoring/integrating-yeoman.html).
```js
import { createEnv } from 'yeoman-environment';
// The #lookup() method will search the user computer for installed generators
// The search if done from the current working directory
await env.lookup();
await env.run('angular', { skipInstall: true });
```
For advance usage, see [our API documentation for latest yeoman-environment](http://yeoman.github.io/environment).
[](http://yeoman.github.io/environment/2.x).
BSD-2-Clause © Yeoman