Registry / database / plasma-cache

plasma-cache

JSON →
library0.2.2jsnpmunverified

plasma-cache is an object cache library for Plasma, a data loading tool by Jon Schlinkert. Version 0.2.2 is the latest release, with last update in 2016; the project is stable but unmaintained. It provides methods to extend, process, and flatten data, with support for template processing via expander and file loading via data loaders. Differentiators include chainable API, glob/file loading, and simple integration with Plasma. The package has minimal dependencies and is not actively developed.

npm install plasma-cache
INSTALL
IMPORT
SIG · PLASMA-CACHE
P
plasma-cache
databasejavascriptv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PlasmaCache
var PlasmaCache = require('plasma-cache');
import PlasmaCache from 'plasma-cache';
CommonJS only; no ES module export prior to v2.
cache instance
var cache = new PlasmaCache();
new PlasmaCache();
Must assign to variable to use.

Shows basic usage: require, instantiate, extend data, process templates, and log result.

var PlasmaCache = require('plasma-cache'); var cache = new PlasmaCache(); cache.extendData({foo: 'bar'}, {baz: 'quux'}); cache.data({a: '<%= b %>', b: 'c'}); console.log(cache.data); // => { foo: 'bar', baz: 'quux', a: 'c', b: 'c' }
Debug
Known issues
deprecatedDeprecated in favor of config-cache
fix
Use config-cache (or other alternatives) as plasma-cache is no longer maintained.
affects: <=0.2.2
Errors
Common errors & fixes
Cannot find module 'plasma'
Missing peer dependency 'plasma'
fix
npm install plasma
Upgrade
Version history
0.2.2latest on npm
Audit
Dependencies
plasmarequiredCore dependency for data loading functionality
Agent activity
2 hits · last 30 days
node
2
Resources
plasma-cache — npm install plasma-cache · libregistry