
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
browser-module-cache
Advanced tools
Caches browserify-cdn modules using level.js
npm install browser-module-cache
var createCache = require('browser-module-cache')
var cache = createCache({
name: 'browser-module-cache' // name of level.js database
inMemory: false // Whether to force usage of memdown
})
cache.put(packages, callback)
Saves a browserify-cdn object where the keys bundle
and package
are required.
cache.put({
blah: {
bundle: 'blahblahblah',
package: {
name: 'blah',
author: 'The Dude',
},
},
}, function() {
console.log('saved!')
})
cache.get([package, ]callback)
Gets all or one specific package from cache.
cache.get(function(err, modules) {
console.log('all modules', modules)
})
cache.get('blah', function(err, module) {
console.log('the blah module', module)
})
cache.clear(callback)
Removes all cached modules.
cache.clear(function(err) {
console.log('all clean')
})
inMemory
option to memdown (@maxogden)Copyright (c) 2013 Kyle Robinson Young
Licensed under the MIT license.
FAQs
Caches browserify-cdn modules using level.js
The npm package browser-module-cache receives a total of 2 weekly downloads. As such, browser-module-cache popularity was classified as not popular.
We found that browser-module-cache 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.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.