var Base = require('base');
var base = new Base({isApp: true});
var yarn = require('..');
base.use(yarn());
See the examples directory for code examples that can be run.
base.yarn.add(['isobject', 'micromatch'], function(err) {
if (err) throw err;
console.log('done');
});
// custom arguments
base.yarn(['why', 'find-pkg'], function(err) {
if (err) throw err;
console.log('done');
});
This plugin exposes the full API from the [yarn-api][] library. See that project for all available methods and documentation.