Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Buckets is a complete, fully tested and documented data structure library written in pure JavaScript.
A JavaScript Data Structure Library
Buckets is a complete, fully tested and documented data structure library written in pure JavaScript.
Buckets also includes several functions for manipulating arrays.
If it supports JavaScript, it probably supports buckets.
Download directly
Then, add it as a script tag to your page:
<script src="buckets.js"></script>
<script>
var aSet = new buckets.Set();
</script>
Or install bucketsjs
using bower
bower install bucketsjs
Or use an AMD loader
require(["./bower/bucketsjs/buckets.js"], function(buckets) {
var hm = new buckets.Dictionary();
});
Or install buckets-js
using npm
npm install buckets-js
In Node.js: var buckets = require('buckets-js');
.
var a = new buckets.Set();
var b = new buckets.Set();
a.add(1);
a.add(2);
b.add(2);
a.union(b); // {1,2}
Read the documentation.
There's nothing else you need to use buckets. However, this guide may help you if you wish to contribute to the project or modify it.
FAQs
Buckets is a complete, fully tested and documented data structure library written in pure JavaScript.
The npm package buckets-js receives a total of 83 weekly downloads. As such, buckets-js popularity was classified as not popular.
We found that buckets-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.