
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
cachebusted
Advanced tools
Map artifact names to cachebusted names
A manifest file is a JSON file that maps the name of an artifact to the path you can actually find it at. This is an important feature when you use cachebusting. This library helps you read and write these files.
This project uses node and npm. Go check them out if you don't have them locally installed.
$ npm install cachebusted
Initialize a new manifest file like this (the file doesn't need to exist yet):
let manifest = new Manifest({
path: '/path/to/a/manifest.json'
})
You can read from the file like this:
manifest.translate('index.js').then((val) => {
// val is now the cachebusted version of index.js
console.log(val)
}).catch((err) => {
// Don't forget to handle errors
})
You can now add entries to the file like this:
writeManifest.add({ 'frontend.js': 'frontend-123.js' }).then(() => {
// Do what you need to do next
}).catch((err) => {
// Don't forget to handle errors
})
Bug reports and pull requests are welcome on GitHub at https://github.com/moonglum/cachebusted. You can find more information about contributing in the CONTRIBUTING.md. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The package is available as open source under the terms of the MIT License.
FAQs
Map artifact names to cachebusted names
We found that cachebusted demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.