
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
Éter is a conglomerate of lightweight collections for JavaScript running on node and browser.
For node, install the package and include it
var eter = require('eter');
For the browser, just include the modules you want
<script src="build/stack.js"></script>
A Stack is a Last-In-First-Out (LIFO) data structure.
var s = new eter.Stack();
s.pushAll([1, 2, 3]);
s.toArray();//[3, 2, 1]
s.pop();//3
s.toArray();//[2, 1]
A Queue is a First-In-First-Out (FIFO) data structure.
var q = new eter.Queue();
q.enqueueAll([1, 2, 3]);
q.toArray();//[1, 2, 3]
q.remove();//1
q.toArray();//[2, 3]
A Linked List is a data structure consisting of a group of nodes which together represent a sequence.
var l = new eter.LinkedList();
l.addAll([1, 2, 3]);
l.toArray();//[1, 2, 3]
l.get(2);//3
l.insert(1, 2);
l.toArray();//[1, 2, 2, 3]
l.remove();
l.toArray();//[2, 2, 3]
l.contains(2);//true
A Trie is an ordered tree data structure that is used to store a dynamic set or associative array where the keys are usually strings.
var t = new eter.Trie();
t.insertAll(['one', 'oh', 'on']);
t.getAll();//['on', 'oh', 'one']
t.contains('one');//true
t.insert('foo');
t.getAll();//['foo', 'on', 'oh', 'one']
t.remove('foo');
t.getAll();//['on', 'oh', 'one']
t.getPrefixed('on');//['on', 'one']
A Hash Map is a data structure used to implement an associative array, a structure that can map keys to values.
var m = new eter.HashMap();
m.set('key', 'value');
m.set('key');//value
m.contains('key');//true
m.remove('foo');
m.contains('key');//false
FAQs
Lightweight collections for JavaScript
The npm package eter receives a total of 0 weekly downloads. As such, eter popularity was classified as not popular.
We found that eter 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.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.