yarn-programmatic
Programmatic API wrapper for Yarn
Last updated 7 years ago by tmatthias .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install yarn-programmatic 
SYNC missed versions from official npm registry.

Yarn Programmatic API

yarn-programmatic is a library that allows you to access yarn commands programmatically from Javascript.

This is still being developed to map the full feature set of Yarn. Please submit a request on Github if there is a particular command you'd like

Usage

Every function returns a Promise.


yarn.add()

yarn.add(['babel', 'react'], {dev: true});

Arguments

name type value
packages Array List of packages to install
options Object Options object (see below)

Options

name type default value
dev Boolean false Save to devDependencies

yarn.remove()

yarn.remove(['babel', 'react']);

Arguments

name type value
packages Array List of packages to remove

yarn.info()

yarn.info(); // Get info on current package
yarn.info('react'); // Get info on 'react' package

Arguments

name type value
package string Optional package to lookup info for

Current Tags

  • 0.1.2                                ...           latest (7 years ago)

5 Versions

  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.2                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Total 26
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 5
Last Month 6
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE