Socket
Book a DemoInstallSign in
Socket

global-lookup-shim

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

global-lookup-shim

### Why?

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Browserify Global Lookup Shim

Why?

Sometimes when you are distributing a standalone lib you want to exclude files from the library. Instead you want them to be looked up on the window. That is where browserify-global-lookup comes in handy.

How to use

browserify src/index.js \
  --standalone Module \
  --external backbone \
  --external underscore \
  | global-lookup-shim.js \
  --global-shim underscore:_ \
  --global-shim backbone:Backbone \
  > dist/build.js

FAQs

Package last updated on 10 Feb 2015

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