global-modulename

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i global-modulename

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • call-a3