# browserify-extract-ids

> Browserify plugin to extract a bundle's module IDs to a file or callback.

Latest version **0.1.0** (published 2017-04-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install browserify-extract-ids
pnpm add browserify-extract-ids
yarn add browserify-extract-ids
bun add browserify-extract-ids
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-04-12 |
| First published | 2017-04-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Chris Kirk |
| Maintainers | chrkirk |
| Keywords | Browserify, browserify-plugin |

## Links

- npm: https://www.npmjs.com/package/browserify-extract-ids
- Repository: https://github.com/cperryk/browserify-extract-ids
- Homepage: https://github.com/cperryk/browserify-extract-ids#readme
- Issues: https://github.com/cperryk/browserify-extract-ids/issues
- npm.io page: https://npm.io/package/browserify-extract-ids

## Dependencies (3)

- [chai](https://npm.io/package/chai.md) ^3.5.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^2.1.2
- [through2](https://npm.io/package/through2.md) ^2.0.3

## 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

- 0.1.0 (latest) — 2017-04-12
- 0.0.1 — 2017-04-10

## README

# browserify-extract-ids

Browserify plugin to export a bundle's module IDs.

## Installation

`npm install browserify-extract-ids --save`

## Usage

```
// main.js
require('./a');
require('./b');
```

```
// a.js
require('c');
```

```
// b.js
console.log('do nothing!');
```

```
// c.js
console.log('do nothing!');
```

```
const extractIds = require('browserify-extract-ids');

browserify()
  .add('./main.js')
  .plugin(extractIds, {
    outputFile: './ids.json'
  });
```

This will result in a `ids.json` like the following. (Note: Browserify assigns modules numeric IDs.)

```
{
  '/some/filepath/a.js': 1,
  '/some/filepath/b.js': 2,
  '/some/filepath/c.js': 3,
  '/some/filepath/main.js': 4
}
```

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