New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

break-cache

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

break-cache

Generic cache breaker

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

break-cache

npm version Build Status Coverage Status Dependency Status devDependency Status npm

Searches strings inside input file and adds (or updates) current timestamp to these strings as URL query parameter.

Installation

$ npm i break-cache

Usage

CLI

$ break-cache --input file [--match pattern] [--output file] [--param name]

options:
-i, --input - input file
-m, --match - regexp for searching URLs inside input file
-o, --output - output file (default: STDOUT)
-p, --param - timestamp query parameter name (default: t)

API

const breakCache = require('break-cache');

// options: { input: string, match?: RegExp, output?: string, param?: string }
// streamOrCallback?: stream.Writable | ((err, data) => void)
breakCache(options, stream);

Example

This will add timestamps to svg badges in a readme file.

$ break-cache README.md -m '\.svg' -o README.md

Keywords

FAQs

Package last updated on 01 Jan 2017

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