# ac-rev-path

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

Latest version **1.0.0** (published 2016-05-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install ac-rev-path
pnpm add ac-rev-path
yarn add ac-rev-path
bun add ac-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.0 |
| Published | 2016-05-26 |
| First published | 2016-05-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | 456wyc |

## Links

- npm: https://www.npmjs.com/package/ac-rev-path
- npm.io page: https://npm.io/package/ac-rev-path

## Dependencies (1)

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

## Recent versions

- 1.0.0 (latest) — 2016-05-26

## README

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


## Install

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


## Usage

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

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

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

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


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)

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