deumdify

Browserify plugin to expose a standalone bundle as a property of the global object

MIT 18 个版本
安装
npm install deumdify
yarn add deumdify
pnpm add deumdify
bun add deumdify
README

deUMDify

Version npmBuild StatusDependenciesCoverage StatusIRC channel

This module is a Browserify plugin that will expose a standalone bundle as a property of the global object omitting AMD and CommonJS support. The reason for this plugin is that Browserify does not give the ability to generate a standalone bundle without a UMD wrapper.

Install

npm install --save deumdify

Usage

Command Line

browserify main.js -s Foo -p deumdify > bundle.js

API

Register the plugin.

'use strict';

var browserify = require('browserify')
  , deumdify = require('deumdify')
  , fs = require('fs');

var b = browserify({ entries: [ 'main.js' ], standalone: 'Foo' });
b.plugin(deumdify);

b.bundle().pipe(fs.createWriteStream('bundle.js'));

And that's it.

License

MIT

版本列表
1.2.8 2020-10-30
1.2.7 2018-03-21
1.2.6 2018-02-07
1.2.5 2018-01-04
1.2.4 2017-01-25
1.2.3 2016-01-11
1.2.2 2015-10-28
1.2.1 2015-07-18
1.2.0 2015-06-18
1.1.1 2015-05-01
1.1.0 2015-02-21
1.0.4 2014-12-25
1.0.3 2014-12-22
1.0.2 2014-12-04
1.0.1 2014-11-13
1.0.0 2014-11-12
0.0.2 2014-11-05
0.0.1 2014-11-02