NPM and package.json

With Browserify, we can create CommonJS modules that can be executed in the browser. When you use CommonJS modules in the browser, Browserify will provide the necessary tools to load the modules, which includes a definition for the require() function.

When you use Browserify, you can use the Node package manager to install and define dependencies for your projects. A useful tool is the npm command tool, used to install and manage project dependencies.

The package.json file in a Node project is a JSON file used to define, install, and manage the version of the libraries that your project depends on. A package.json file can contain many configuration options; you can see the complete documentation on the Node website at https://docs.npmjs.com/ ...

Get Mastering Backbone.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.