
Security News
crates.io Ships Security Tab and Tightens Publishing Controls
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.
Fast and iterable data structure for sorting bounded values
npm install value-sort
Uses a fixed size array to store values and a indexed-bitfield to iterate them.
const valueSort = require('value-sort')
// all values are between [0, 65536[
const vs = valueSort(65536)
vs.add(55)
vs.add(1004)
vs.add(0)
vs.add(9999)
vs.add(66)
// the valueSort instance if iterable
for (const v of vs) {
console.log(v)
}
Running the above prints
0
55
66
1004
9999
If you want the values as a sorted array instead use
const arr = vs.toArray()
If you pass an object as the 2nd arg to add that object will show up in the iteration instead of the value
// the object on the right is returned instead of 42 on iteration
vs.add(42, {index: 42, hello: 'world'})
MIT
FAQs
Fast and iterable data structure for sorting bounded values
We found that value-sort 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
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.