Browserify

Browserify is an open-source JavaScript tool that allows developers to write Node.js-style modules that compile for use in the browser.[5]

Browserify
Developer(s)Browserling team and Browserify contributors
Initial release9 June 2011 (2011-06-09)[1]
Stable release
17.0.0 / 10 October 2020 (2020-10-10)[2]
Repositorygithub.com/browserify/browserify
Written inJavaScript
Operating systemLinux, macOS, Windows
PlatformNode.js
LicenseMIT License[3][4]
Websitebrowserify.org

Browserify lets you use require in the browser, the same way you'd use it in Node. It's not just syntactic sugar for loading scripts on the client. It's a tool that brings many of the resources of the NPM ecosystem off of the server, and into the client.

Examples

Installation

$ npm install --global browserify

Execution

$ browserify source.js -o target.js

This adds the source of all the require modules and their dependencies used in source.js and bundles them in target.js. Browserify traverses the dependency graph, using your source.js as its entry point, and includes the source of every dependency it finds.

References

  1. "Release Date of Version 1.0.0". Retrieved 2020-12-31.
  2. "Releases · browserify/browserify". Retrieved 2020-12-31.
  3. "LICENSE file on GitHub". Retrieved 2020-12-31.
  4. "License field from browserify - npm". Retrieved 2020-12-31.
  5. "NPM, Browserify, and modules". Retrieved 24 Dec 2014.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.