# parsec-rev-path

> Create a revved file path

Latest version **1.0.1** (published 2016-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install parsec-rev-path
pnpm add parsec-rev-path
yarn add parsec-rev-path
bun add parsec-rev-path
```

## 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 | 2016-08-11 |
| First published | 2016-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yang hc |
| Maintainers | hqwlkj |
| Keywords | rev, revving, web, file, name, filename, path, cache, caching |

## Links

- npm: https://www.npmjs.com/package/parsec-rev-path
- Repository: https://github.com/hqwlkj/parsec-rev-path
- Homepage: https://github.com/hqwlkj/parsec-rev-path#readme
- Issues: https://github.com/hqwlkj/parsec-rev-path/issues
- npm.io page: https://npm.io/package/parsec-rev-path

## Dependencies (1)

- [modify-filename](https://npm.io/package/modify-filename.md) ^1.0.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-08-11

## README

# parsec-rev-path [![Build Status](https://travis-ci.org/hqwlkj/parsec-rev-path.svg?branch=master)](https://travis-ci.org/hqwlkj/parsec-rev-path)

> Create a [revved file path](http://blog.risingstack.com/automatic-cache-busting-for-your-css/)


## Install

```
$ npm install --save parsec-rev-path
```


## Usage

```js
var revPath = require('parsec-rev-path');
var hash = 'bb9d8fe615'

var path = revPath('src/unicorn.png', hash);
//=> 'src/unicorn.png?v=bb9d8fe615'

revPath('src/unicorn.png', Date.now());
//=> 'src/unicorn.png?v=1432309925925'

// you can also revert an already hashed path
revPath.revert(path, hash);
//=> 'src/unicorn.png'
```



## License

MIT © [Yanghc](https://github.com/hqwlkj)

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