Browserify lets you require('modules') in the browser by bundling up all of your dependencies. Browsers don't have the require method defined, but Node.js does. With Browserify you can write code that uses require in the same way that you would use it in Node. Install the uniq module with npm. Now recursively bundle up all the required modules starting at main.js into a single file called bundle.js with the browserify command. Browserify parses the AST for require() calls to traverse the entire dependency graph of your project. Drop a single <script> tag into your html and you're done! browserify is a tool for compiling node-flavored commonjs modules for the browser. You can use browserify to organize your code and use third-party libraries even if you don't use node itself in any other capacity except for bundling and installing packages with npm.

Features

  • Use many of the tens of thousands of modules on NPM in the browser
  • Use watchify, a browserify compatible caching bundler, for super-fast bundle rebuilds as you develop
  • Use tinyify for optimized, tree-shaked bundles in production environments
  • Use --debug when creating bundles to have Browserify automatically include Source Maps for easy debugging
  • Check out tools like Beefy or run-browser which make automating browserify development easier
  • Get browser versions of the node core libraries events, stream, path, url, assert, buffer, util, querystring, http, vm, and crypto when you require() them

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow browserify

browserify Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of browserify!

Additional Project Details

Operating Systems

Windows

Programming Language

JavaScript

Related Categories

JavaScript Browser Extensions and Plugins

Registered

2021-04-19