New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bower-amd-paths

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

bower-amd-paths

Populates "paths" for AMD (RequireJS) config with installed Bower components

latest
Source
npmnpm
Version
1.0.2-0
Version published
Maintainers
1
Created
Source

bower-amd-paths Build Status

Populates "paths" for AMD (RequireJS) config with installed Bower components

Install

$ npm install --save bower-amd-paths

Usage

var bowerAmdPaths = require('bower-amd-paths');

if you have the following in your .bowerrc

{
  "cwd": "webapp",
  "directory": "vendor"
}

this will return something similar to this:

   { jquery: 'webapp/vendor/jquery/dist/jquery',
     handlebars: 'webapp/vendor/handlebars/handlebars',
     bootstrap: 'webapp/vendor/bootstrap/dist/js/bootstrap',
     almond: 'webapp/vendor/almond/almond',
     'lodash.compat': 'webapp/vendor/lodash/dist/lodash.compat',
     backbone: 'webapp/vendor/backbone-amd/backbone' }
   }

API

var bowerAmdPaths = require('bower-amd-paths')

bowerAmdPaths([options], callback)

options.cwd

Type: String

This should be base Bower directory, or directory where .bowerrc is located

bowerAmdPaths({cwd: './application'}, function(err, result){
    ...
});

callback

Type: Function

bowerAmdPaths(function(err, result){
    ...
});

err - error or null

results - array with paths

Keywords

bower

FAQs

Package last updated on 10 Nov 2014

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