Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
É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="dist/eter.js"></script>
If you use TypeScript, typings are included
import {Stack} from 'eter';
let s: Stack<number> = new Stack();
A Stack is a Last-In-First-Out (LIFO) data structure.
var s = new eter.Stack();
s.push(1);
s.push(2);
s.pop();//2
s.pop();//1
s.isEmpty();//true
s.pop();//Error "Empty stack"
A Queue is a First-In-First-Out (FIFO) data structure.
var q = new eter.Queue();
q.enqueue(1);
q.enqueue(2);
q.dequeue();//1
q.dequeue();//2
q.isEmpty();//true
q.dequeue();//Error "Empty queue"
A Linked List is a data structure consisting of a group of nodes which together represent a sequence.
var l = new eter.LinkedList();
l.add(1);
l.get(0);//1
l.remove(0);
l.isEmpty();//true
l.get(0);//Error "Index 0 out of bounds"
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.insert('one');
t.insert('oh');
t.insert('on');
t.contains('one');//true
t.insert('foo');
t.remove('foo');
t.contains('foo');//false
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.put('key', 'value');
m.get('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 3 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.