Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

node-file-rev

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-file-rev

Simple node cli tool to revision files and write them to a rev-manifest.json

latest
Source
npmnpm
Version
1.1.4
Version published
Weekly downloads
102
-6.42%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

node file rev

FAQs

Package last updated on 27 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts