Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 21, 2024 via pnpm

cache-base 0.2.0

Basic, general purpose object cache for node.js/javascript projects.
Package summary
Share
6
issues
1
critical severity
vulnerability
1
2
high severity
vulnerability
2
2
moderate severity
vulnerability
2
1
low severity
vulnerability
1
1
license
7
MIT
Package created
12 Oct 2014
Version published
15 Nov 2014
Maintainers
2
Total deps
7
Direct deps
5
License
UNKNOWN

Issues

6

1 critical severity issue

critical
Recommendation: Upgrade to version 4.17.12 or later
via: lodash@2.4.2 & others
Collapse
Expand

2 high severity issues

high
Recommendation: Upgrade to version 4.17.11 or later
via: lodash@2.4.2 & others
Recommendation: Upgrade to version 4.17.21 or later
via: lodash@2.4.2 & others
Collapse
Expand

2 moderate severity issues

moderate
Recommendation: Upgrade to version 4.17.11 or later
via: lodash@2.4.2 & others
Recommendation: Upgrade to version 4.17.21 or later
via: lodash@2.4.2 & others
Collapse
Expand

1 low severity issue

low
Recommendation: Upgrade to version 4.17.5 or later
via: lodash@2.4.2 & others
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
array-slice@0.2.3
cache-base@0.2.0
get-value@0.2.2
isobject@0.2.0
kind-of@0.1.2
lodash@2.4.2
option-cache@0.1.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of cache-base 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
array-slice0.2.32.25 kBMIT
prod
get-value0.2.23.15 kBMIT
prod
kind-of0.1.23.18 kBMIT
prod
lodash2.4.2192.11 kBMIT
prod
1
2
2
1
option-cache0.1.44.52 kBMIT
prod
1
2
2
1

Visualizations

Frequently Asked Questions

What does cache-base do?

Cache Base is an efficient and customizable object caching utility designed for Node.js and JavaScript projects. It's a nifty tool that provides fundamental methods such as get, set, del, and has to help you manipulate project data effectively. Navigating nested properties is simple using dot notation, making it a beneficial resource in managing complex object structures.

How do you use cache-base?

To use Cache Base, download and install the package through NPM with the command $ npm install --save cache-base. After which, you may then require Cache Base in your project file like const CacheBase = require('cache-base');. Initialize a new Cache Base instance and use the provided methods to extract, manipulate, and check your data. Here is a simple usage example:

// Require the Cache Base library
const CacheBase = require('cache-base');
// Initialize a new Cache Base instance
const app = new CacheBase();

// Set data in the cache
app.set('a.b', 'c');

// Get data from the cache
console.log(app.get('a'));   // Output: { b: 'c' }
console.log(app.get('a.b')); // Output: 'c'

You can also interact with cache data using events emitted from Cache Base:

app.on('set', function(key, val) {
  // Do something when `set` is emitted
});

app.set('admin', true); // Triggers the 'set' event listener

Where are the cache-base docs?

You'll find all the details and additional configuration settings in the Cache Base GitHub repository. The README.md file on the repository contains an in-depth guide complete with usage examples and the complete API reference. This documentation helps you understand the optimal way to utilize Cache Base's functionalities to effectively manage your project's data.