# browserify-loader2

> The browser-side node.js module loader

Latest version **1.0.2** (published 2016-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install browserify-loader2
pnpm add browserify-loader2
yarn add browserify-loader2
bun add browserify-loader2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-01-07 |
| First published | 2016-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zengfenfei@gmail.com |
| Maintainers | fenfeizeng |
| Keywords | commonjs, module, loader, browserify |

## Links

- npm: https://www.npmjs.com/package/browserify-loader2
- Repository: git@github.com:zengfenfei/browserify-loader
- Homepage: https://github.com/zengfenfei/browserify-loader
- Issues: https://github.com/zengfenfei/browserify-loader/issues
- npm.io page: https://npm.io/package/browserify-loader2

## Dependencies (1)

- [browserify](https://npm.io/package/browserify.md) ^12.0.1

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-01-07
- 1.0.1 — 2016-01-06
- 1.0.0 — 2016-01-05

## README

browserify-loader
=================

A CommonJS Loader for browserify workflow.


## What is browserify-loader

`browserify-loader` is another CommonJS loader for  browserify workflow. With BL, You don’t need  any tools  like watchify, browserify-middleware to auto build and serve bundle *js in development env.

`browserify-loader` is similar  with [requirejs](http://requirejs.org/), but:

- Follow [module loading algorithm](https://nodejs.org/api/modules.html#modules_all_together)
- get rid of wrapper code like `define()`
- be compatible all `npm` package  and  all `bower` components witch support `CommonJS`. like `underscore`, `backbone`, `jQuery` and so on.

## Getting started

### Install

Download `browserify-loader`  with `npm`:

```bash
$ npm install browserify-loader2
```

Put  `browserify-loader.min.js` in your page:

```html
<!DOCTYPE html>
<html>
<head>
  <title></title>
</head>
<body>
    <script main="./app.js" src="node_modules/browserify-loader2/out/browserify-loader.min.js"></script>
</body>
</html>
```

Then, `browserify-loader` will start to run for `main` file in your `package.json` file.

### Options

- **main**: the main entrance script like `app.js` in `node app.js`
-  **defineName**:  The name of the define function. *Not supported yet*.
- **forceExt**: Force loading files with valid extensions only, ignore files with invalid extenstion. *Not supported yet*.
- **forceDir**:  Force path which ends with `/` to be a directory module. *Not supported yet*.

## Example

Look into `example/index.html`.

## Tests
The module loader has test cases written in Qunit, open `test/index.html`.

---
_Source: https://npm.io/package/browserify-loader2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
