https://github.com/lukasoppermann/node-file-rev
Simple node cli tool to revision files and write them to a manifest.json
https://github.com/lukasoppermann/node-file-rev
file-rev manifest node-cli rev revision-files
Last synced: 6 months ago
JSON representation
Simple node cli tool to revision files and write them to a manifest.json
- Host: GitHub
- URL: https://github.com/lukasoppermann/node-file-rev
- Owner: lukasoppermann
- License: mit
- Created: 2018-11-27T13:33:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T02:37:26.000Z (over 2 years ago)
- Last Synced: 2025-02-01T23:41:17.678Z (11 months ago)
- Topics: file-rev, manifest, node-cli, rev, revision-files
- Language: JavaScript
- Size: 72.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# node-file-rev
> Simple node cli tool to revision files and write them to a rev-manifest.json
## Features
- add an md5 revision hash to one or multiple files
- create / update a JSON revision manifest file
## Install
```
$ npm install node-file-rev
```
## Usage
```
$ node-file-rev assets/app.css
```
Use a space separated list for multiple files.
```
$ node-file-rev assets/css/app.css assets/js/*.js
```
Use the `--manifest` flag to change the manifest file name and location.
```
$ node-file-rev assets/css/app.css assets/js/app.js --manifest=assets/rev.json
```
Use the `--root` flag to specify the root directory e.g. `assets/` this will be removed from the filepath in the manifest file.
```
assets/css/app.css => css/app.css
```