@@ -17,19 +17,19 @@ Lrujs is a fast and lightweight least-recently-used cache for [Node.js](http://n
17
17
Install using npm:
18
18
19
19
``` console
20
- $ npm i lrujs
20
+ $ npm i @opensnip/ lrujs
21
21
```
22
22
23
23
Install using yarn:
24
24
25
25
``` console
26
- $ yarn add lrujs
26
+ $ yarn add @opensnip/ lrujs
27
27
```
28
28
29
29
## Example
30
30
31
31
``` js
32
- const LRUCache = require (" lrujs" );
32
+ const LRUCache = require (" @opensnip/ lrujs" );
33
33
34
34
// Create cache object
35
35
const cache = new LRUCache ();
@@ -62,7 +62,7 @@ Lrujs is also support TTL, but it is not a TTL cache, and does not make strong T
62
62
#### Create a cache object:
63
63
64
64
``` js
65
- const LRUCache = require (" lrujs" );
65
+ const LRUCache = require (" @opensnip/ lrujs" );
66
66
67
67
// Create cache object
68
68
const cache = new LRUCache ({
@@ -155,9 +155,9 @@ cache.forEach(function (data) {
155
155
156
156
[ MIT License] ( https://github.com/opensnip/lrujs/blob/main/LICENSE )
157
157
158
- [ npm-downloads-image ] : https://badgen.net/npm/dm/lrujs
159
- [ npm-downloads-url ] : https://npmcharts.com/compare/lrujs?minimal=true
160
- [ npm-install-size-image ] : https://badgen.net/packagephobia/install/lrujs
161
- [ npm-install-size-url ] : https://packagephobia.com/result?p=lrujs
162
- [ npm-url ] : https://npmjs.org/package/lrujs
163
- [ npm-version-image ] : https://badgen.net/npm/v/lrujs
158
+ [ npm-downloads-image ] : https://badgen.net/npm/dm/@opensnip/ lrujs
159
+ [ npm-downloads-url ] : https://npmcharts.com/compare/@opensnip/ lrujs?minimal=true
160
+ [ npm-install-size-image ] : https://badgen.net/packagephobia/install/@opensnip/ lrujs
161
+ [ npm-install-size-url ] : https://packagephobia.com/result?p=@opensnip/ lrujs
162
+ [ npm-url ] : https://npmjs.org/package/@opensnip/ lrujs
163
+ [ npm-version-image ] : https://badgen.net/npm/v/@opensnip/ lrujs
0 commit comments