Socket
Socket
Sign inDemoInstall

node-file-rev

Package Overview
Dependencies
66
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
185
increased by98.92%
Maintainers
1
Install size
1.06 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 27 Oct 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc