rev-path

WebJar for rev-path

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

rev-path
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

rev-path
WebJar for rev-path
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/rev-path

Download rev-path

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/rev-path/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>rev-path</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/rev-path/
implementation 'org.webjars.npm:rev-path:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/rev-path/
implementation ("org.webjars.npm:rev-path:2.0.0")
'org.webjars.npm:rev-path:jar:2.0.0'
<dependency org="org.webjars.npm" name="rev-path" rev="2.0.0">
  <artifact name="rev-path" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='rev-path', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "rev-path" % "2.0.0"
[org.webjars.npm/rev-path "2.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : modify-filename jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

rev-path

Create a revved file path

Install

$ npm install rev-path

Usage

const revPath = require('rev-path');
const hash = 'bb9d8fe615'

const 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'

Related

  • rev-file - Get the revved file path of a file

License

MIT © Sindre Sorhus

Versions

Version
2.0.0