Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-bust

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-bust

Create cache-busted versions of a file using the MD5 hash of the file's contents.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

cache-bust

Create cache-busted versions of a file using the MD5 hash of the file's contents.

Installation

$ npm install cache-bust

Example

var bust = require('cache-bust');
var file = path.resolve(__dirname, 'build.js');

bust(file); // creates a "build-43c191bf6d6c3f263a8cd0efd4a058ab.js"

API

cacheBust(file, [options])

Create a cache-busted version of file in the same directory, removing previously cache-busted copies if they exist.

Options:

{
  remove: false
}

cacheBust.remove(file)

Remove any existing cache-busted versions of a file.

cacheBust.alias(file)

Return the cache-busted alias for a given file.

License

MIT

Keywords

FAQs

Package last updated on 30 Sep 2013

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc