# browserify-versionify

> Browserify transform to replace placeholder with package version

Latest version **1.0.6** (published 2015-07-17) · MIT license · 0 weekly downloads

## Install

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

## 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.6 |
| Published | 2015-07-17 |
| First published | 2014-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Lars Kappert |
| Maintainers | webpro |
| Keywords | browserify, transform, browserify-transform, version |

## Links

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

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) 0.6.3
- [find-root](https://npm.io/package/find-root.md) ^0.1.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.6 (latest) — 2015-07-17
- 1.0.5 — 2015-07-15
- 1.0.4 — 2015-02-17
- 1.0.3 — 2014-12-17
- 1.0.2 — 2014-11-18
- 1.0.1 — 2014-11-09
- 1.0.0 — 2014-11-09

## README

# browserify-versionify

Browserify transform to replace placeholder with package version.

By default, it replaces `__VERSION__` with the version from `package.json` in your source code. E.g. before:

```js
var version = '__VERSION__';
```

after:

```js
var version = '1.0.0';
```

## Usage

From command line:

    browserify -t browserify-versionify

From Node.js:

    browserify().transform('browserify-versionify');

    // Configure (default values shown)
    browserify().transform('browserify-versionify', {
        placeholder: '__VERSION__',
        version: pkg.version
    });

You can also provide a `filter` property to whitelist files to apply the transform to (e.g. `filter: /\.js$/`).

You can also add the transform to your `package.json`:

```json
{
    "browserify": {
        "transform": [
            "browserify-versionify"
        ]
    }
}
```

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