New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bfred-npm-bundler

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfred-npm-bundler

Browserify, babelify, minify node modules. For my own modules, but maybe you can find it useful too.

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bfred-npm-bundler

Browserify, babelify, minify node modules. For my own modules, but maybe you can find it useful too.

Usage

npm install --save-dev bfred-npm-bundler

Add to your module's package.json:

"scripts": {
  "build": "./node_modules/bfred-npm-bundler/tasks/all.sh index.js doSomething do-something",
  "to-npm": "./node_modules/bfred-npm-bundler/tasks/to-npm.sh index.js do-something",
  "prepublish": "npm run to-npm"
}

where doSomething is the global variable name of the module (camelCase) and do-something is the module name on npm.

Files

Here's an explanation of the files that this generates (the ones in dist/)

  • index.js: source file, in ES6, the input
  • dist/do-something.js: browser-ready file with AMD or a global variable called doSomething
  • dist/do-something.min.js: same as above, minified
  • dist/do-something.node.js: used by node/browserify with require('do-something')
  • dist/do-something.node.min.js: same as above, but minified, for byte counting only

License

MIT © Federico Brigante

FAQs

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

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