# package-json-versionify

> Browserify transform to strip package.json of everything but the version

Latest version **1.0.4** (published 2016-12-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install package-json-versionify
pnpm add package-json-versionify
yarn add package-json-versionify
bun add package-json-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.4 |
| Published | 2016-12-22 |
| First published | 2015-12-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Nolan Lawson |
| Maintainers | nolanlawson |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.4 (latest) — 2016-12-22
- 1.0.3 — 2016-11-03
- 1.0.2 — 2016-02-20
- 1.0.1 — 2016-01-15
- 1.0.0 — 2015-12-25

## README

package-json-versionify [![Build Status](https://travis-ci.org/nolanlawson/package-json-versionify.svg?branch=master)](https://travis-ci.org/nolanlawson/package-json-versionify)
=====

Browserify transform to strip everything from `package.json` except for
the `"version"` field.

Installation
----

    npm install --save package-json-versionify

Description
----

Say you want to ship a library, and do something like:

```js
MyLibrary.version = require('./package.json').version;
```

Unfortunately, if you do this, then your entire `package.json` will be included
in the output Browserify bundle, which will increase your bundle size. Bummer!

However, if you use this transform, then it will remove everything from `package.json` except for the `"version"` field. So when you `require('./package.json')`, you get something much more compact, e.g.:

```js
{"version":"1.0.0"}
```

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