# version-writer

> A simple grunt plugin to write the package's version into your page

Latest version **0.2.0** (published 2016-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install version-writer
pnpm add version-writer
yarn add version-writer
bun add version-writer
```

## 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.2.0 |
| Published | 2016-03-19 |
| First published | 2016-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Wagner Resende Santos |
| Maintainers | wagoid |

## Links

- npm: https://www.npmjs.com/package/version-writer
- Repository: https://github.com/wagoid/version-writer
- Homepage: https://github.com/wagoid/version-writer#readme
- Issues: https://github.com/wagoid/version-writer/issues
- npm.io page: https://npm.io/package/version-writer

## Recent versions

- 0.2.0 (latest) — 2016-03-19
- 0.1.0 — 2016-03-19

## README

# version-writer
A simple grunt plugin to write the package's version into your page

# How to use it 

Add the following dependency to your project:
```
"version-writer": "^0.1.0"
```

Configure your GruntFile.js. Example GruntFile.js content:

```
module.exports = function(grunt) {

  grunt.initConfig({
      versionWriter: {
        options: {
          packagePath: "./package.json",
          filePath: "./index.html",
          tag: "p"
        }
      }
  });

  grunt.loadNpmTasks('version-writer');
};
```

Run ```npm install```

Now run the script!

```grunt versionWriter```



The packagePath option is the path to your package.json file. Default is './package.json'.

The filePath option is the path to your index.html file. Default is './index.html'.

The tag option is the html tag to replace the content. Default is 'p'.

The version of your project should be using the Semantic Versioning pattern. Check it out: http://semver.org/.

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