Socket
Socket
Sign inDemoInstall

browserify

Package Overview
Dependencies
Maintainers
0
Versions
485
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

builtins/path.js

2

package.json
{
"name" : "browserify",
"version" : "0.2.7",
"version" : "0.2.8",
"description" : "Browser-side require() for js directories and npm modules",

@@ -5,0 +5,0 @@ "main" : "./index.js",

@@ -143,18 +143,35 @@ Browserify

* base : recursively bundle all `.js` and `.coffee` files in this directory or
Array of directories. If there is a package.json at `base`, it will be read
according to the procedure below.
### base
* name : preface the files in `base` with this name
Recursively bundle all `.js` and `.coffee` files.
* main : map `require(name)` for the `name` field to this file
Base can be a directory, an Array of directories, or an object that
maps names to directories such that `require('name/submodule')` works.
* shim : whether to include [es5-shim](https://github.com/kriskowal/es5-shim)
for legacy javascript engines; true if unspecified
If there is a package.json at the `base` directory it will be read
according to the `package.json` procedure below.
* require : bundle all of these module names and their dependencies.
If the name has a slash in it, only that file will be included, otherwise
all .js and .coffee files which are not in the test directory and are not
binaries will be bundled into the final output.
### name
Preface the files in `base` with this name.
### main
Map `require(name)` for the `name` field to this file.
### shim
Whether to include [es5-shim](https://github.com/kriskowal/es5-shim) for legacy
javascript engines.
True if unspecified.
### require
Bundle all of these module names and their dependencies.
If the name has a slash in it, only that file will be included, otherwise all
.js and .coffee files which are not in the test directory and are not binaries
will be bundled into the final output.
package.json

@@ -176,2 +193,5 @@ ============

process
-------
Browserify exports a faux `process` object with these attributes:

@@ -181,1 +201,12 @@

* title - set to 'browser' for browser code, 'node' in regular node code
events
------
You can `require('events').EventEmitters` just like in node.js code.
path
----
The posix functions from the `path` module have been included except for
`exists()` and `existsSync()`. Just `require('path')`!
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