
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
Data structure that maps an integer list to a list of relative integer deltas
Data structure that maps an integer list to a list of relative integer deltas
npm install delta-list
var delta = require('delta-list')
var deltas = delta.pack([1, 2, 3, 4, 5])
console.log(deltas) // prints [1, 1, 1, 1, 1]
var abs = delta.unpack(deltas)
console.log(abs) // prints [1, 2, 3, 4, 5]
array = delta.pack(list, [resultList])Map a list of integers to a list of relative deltas. Optionally you can pass in a list to store the deltas in.
array = delta.unpack(list, [resultList])Map a list of relative deltas to a list of integers. Optionally you can pass in a list to store the integers in.
If you have a sorted list of integers and you want to transmit then over a network it can be useful to only send the deltas and the resulting integers will be smaller meaning you'll need fewer bytes to encode them.
MIT
FAQs
Data structure that maps an integer list to a list of relative integer deltas
We found that delta-list 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.