New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lru-set

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lru-set

Set implementation with lru feature for node

0.1.0-dev
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

lru-set Build Status

Set implementation with lur feature for node.

Getting Started

Install the module with: npm install lru-set

var LRUSET = require('lru-set');

var set = LRUSET(1, 2, 3);

//
set.len(); // 3
set.contain(3); // true
set.contain(4); // false

//
set.add(3);
set.len(); // still 3
set.add(4);
set.len(); // 4

//
set.pop(); // 4
set.len(); // back to 3

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

  • v0.1.0, 2013/07/15

License

Copyright (c) 2013 Guan Qing Licensed under the MIT license.

Keywords

lru

FAQs

Package last updated on 15 Jul 2013

Did you know?

Socket

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.

Install

Related posts