# bundle-metadata

> extract metadata about a browserify bundle

Latest version **1.0.1** (published 2014-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install bundle-metadata
pnpm add bundle-metadata
yarn add bundle-metadata
bun add bundle-metadata
```

Provides the command `bundle-metadata`.

## 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.1 |
| Published | 2014-04-04 |
| First published | 2013-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/bundle-metadata
- Repository: https://github.com/dominictarr/bundle-metadata
- Issues: https://github.com/dominictarr/bundle-metadata/issues
- npm.io page: https://npm.io/package/bundle-metadata

## Dependencies (4)

- [sha1sum](https://npm.io/package/sha1sum.md) 0.0.1
- [through](https://npm.io/package/through.md) ~2.3.3
- [optimist](https://npm.io/package/optimist.md) ~0.4.0
- [JSONStream](https://npm.io/package/JSONStream.md) ~0.6.4

## Recent versions

- 1.0.1 (latest) — 2014-04-04
- 1.0.0 — 2013-04-25

## README

# bundle-metadata

Gather some metadata of a browserify bundle, & sort the files,
so that a hash of the bundle will be consistent.

## Examples

### bundle bundle-metadata and save meta.json

```
npm install -g module-deps bundle-metadata browser-pack

cd ~/dev/bundle-metadata

module-deps index.js | bundle-metadata --meta meta.json | browser-pack > bundle.js
cat meta.json
```

### from the api, use like this:
``` js
mdeps(entry)
.pipe(meta()
  .on('meta', function (meta) {
    console.error(meta)
  })
).pipe(browserPack())
.pipe(process.stdout)
```

### as a browserify command

```
browserify -c 'bundle-metadata --meta meta.json' index.js > bundle.js
```

## License

MIT

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