Socket
Socket
Sign inDemoInstall

lru-cache

Package Overview
Dependencies
2
Maintainers
2
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.1 to 4.0.2

6

package.json
{
"name": "lru-cache",
"description": "A cache object that deletes the least-recently-used items.",
"version": "4.0.1",
"version": "4.0.2",
"author": "Isaac Z. Schlueter <i@izs.me>",

@@ -12,3 +12,3 @@ "keywords": [

"scripts": {
"test": "tap test --branches=100 --functions=100 --lines=100 --statements=100",
"test": "tap test --100",
"posttest": "standard test/*.js lib/*.js"

@@ -20,3 +20,3 @@ },

"standard": "^5.4.1",
"tap": "^5.1.1"
"tap": "^8.0.1"
},

@@ -23,0 +23,0 @@ "license": "ISC",

@@ -7,2 +7,8 @@ # lru cache

## Installation:
```javascript
npm install lru-cache --save
```
## Usage:

@@ -49,3 +55,3 @@

`function(){return 1}`, which is fine if you want to store `max`
like-sized things. They item is passed as the first argument, and
like-sized things. The item is passed as the first argument, and
the key is passed as the second argumnet.

@@ -52,0 +58,0 @@ * `dispose` Function that is called on items when they are dropped

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc