Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browserify-shim-dependency

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-shim-dependency

easier way to create dependencies for browserify-shim

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

browserify-shim-dependency

Dependencies  Dependencies  Build Status

###About: Dependency initialization in browserfy-shim is very terse and repetitive. This library aim to help eliminate that.

In short a shim definition like

obj = JSON.parse('{
  "../../app/components/jquery/dist/jquery.js" : {"exports" :  "$" },
  "../../app/components/bootstrap/dist/bootstrap.js" : {"exports" : "bootstrap" },
  "../../app/components/angular/angular.js" : {"exports" : "angular", "depends" : { "../../app/components/jquery/dist/jquery.js" : {"exports" : "$" }}}
}')

becomes..

bower = '../../app/components/'
$ = new dep "#{bower}jquery/dist/jquery.js", '$'
bootstrap = new dep "#{bower}bootstrap/dist/bootstrap.js", 'bootstrap'
angular = new dep("#{bower}angular/angular.js", 'angular').dependsOn $

dependencies = $.combine [bootstrap, angular] #or dep.combine [$,bootstrap, angular]

where

dependencies == obj

To use pull in via npm or bower.

npm install --save-dev browserify-shim-dependency
bower install --save browserify-shim-dependency

FAQs

Package last updated on 16 Aug 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc