# bumped-html

> A bumped plugin. Inject application version into html files (in meta tag).

Latest version **1.0.4** (published 2019-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install bumped-html
pnpm add bumped-html
yarn add bumped-html
bun add bumped-html
```

## 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 | 2019-11-15 |
| First published | 2019-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 10 |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Alexej Vakulich |
| Maintainers | ok2ju |
| Keywords | bumped, release, release-automation, bumped-html |

## Links

- npm: https://www.npmjs.com/package/bumped-html
- Repository: https://github.com/ok2ju/bumped-html
- Issues: https://github.com/ok2ju/bumped-html/issues
- npm.io page: https://npm.io/package/bumped-html

## Dependencies (1)

- [jsdom](https://npm.io/package/jsdom.md) ^15.2.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2019-11-15
- 1.0.3 — 2019-11-14
- 1.0.2 — 2019-11-13
- 1.0.1 — 2019-11-13
- 1.0.0 — 2019-11-13

## README

# bumped-html

> A [bumped](https://github.com/bumped/bumped) plugin. Adds version to html files in meta tags on each bump.

```html
<!doctype html>
<html lang="en">
  <head>
    <meta name="version" content="3.2.0" />
  </head>
  <body>...</body>
</html>
```

If `version` meta tag exists in your html file `bumped-html` will replace version with actual one. If not - `version` meta tag will be added in html markup.

## Install

```bash
npm install -g bumped-html
```

## Configuration

Declare a plugin step in your `.bumpedrc` like:

```json
plugins:
  postrelease:
    'Setting version to html files':
      plugin: bumped-html
      files:
        - src/index.html
```

Check out [bumped](https://github.com/bumped/bumped) repository for more detailed information how to setup/use bumped.
**Note**: This plugin should be called on `postrelease`!

## Backlog

1. ~~Check if meta tag exist (if not - add one)~~;
2. ~~Validate filepath~~;
3. ~~Error handling~~;
4. Add tests.

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