New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

global-modulename

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-modulename

a transform for browserify which allows the replacement of a new global, '__modulename' with the name of the (sub)module within which it is defined

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

global-modulename

Build Status Dependency Status devDependency Status

Transform that allows for a new statically-compiled global: __modulename.

This global is resolved to the name of the containing (sub)module. Mostly this will resolve to the basename of the containing file with the extension stripped off, unless the file is named index.*, in which case the name of the parent directory is used.

Installation

global-modulename

Usage

browserify -t global-modulename entry.js > bundle.js

License

MIT

Keywords

browserify

FAQs

Package last updated on 04 Nov 2014

Related posts