🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

base-bower

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-bower

Base plugin that adds methods for programmatically installing bower packages.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

base-bower NPM version NPM downloads Build Status

Base plugin that adds methods for programmatically installing bower packages.

Install

Install with npm:

$ npm install base-bower --save

Usage

var bower = require('base-bower');
var Base = require('base');
var app = new Base();
app.use(bower());

// install bower packages `bootstrap` and `moment`
app.bower.saveDev(['bootstrap', 'moment'], function(err) {
  if (err) throw err;
});

API

.bower

Execute bower install with the given args, package names and callback.

Params

  • args {String|Array}
  • names {String|Array}
  • cb {Function}: Callback

Example

app.bower('--save', ['isobject'], function(err) {
  if (err) throw err;
});

.bower.install

Execute bower install with one or more package names. Does not save anything to bower.json.

Params

  • names {String|Array}
  • cb {Function}: Callback

Example

app.bower.install('isobject', function(err) {
  if (err) throw err;
});

.bower.latest

Force (re-)install the latest version of all dependencies listed in bower.json.

Params

  • cb {Function}: Callback

Example

app.bower.latest(function(err) {
  if (err) throw err;
});

.bower.save

Execute bower install --save with one or more package names. Updates dependencies in bower.json.

Params

  • names {String|Array}
  • cb {Function}: Callback

Example

app.bower.save('micromatch', function(err) {
  if (err) throw err;
});

.bower.saveDev

Execute bower install --save-dev with one or more package names. Updates devDependencies in bower.json.

Params

  • names {String|Array}
  • cb {Function}: Callback

Example

app.bower.saveDev('isobject', function(err) {
  if (err) throw err;
});

You might also be interested in these projects:

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

Generate readme and API documentation with verb:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

Follow me on GitHub or Twitter for updates about base-bower and my other libraries:

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.

This file was generated by verb, v, on April 07, 2016.

Keywords

api

FAQs

Package last updated on 07 Apr 2016

Did you know?

Socket

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.

Install

Related posts