
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
proto-list-deep
Advanced tools
An extension of isaacs' proto-list that exposes a deepSnapshot. This returns
a different result than snapshot. Whereas snapshot is implicitly merging
all keys at the top level due to the prototype chain, deepSnapshot first
flattens each 'level' of the proto-list, grabs all the values, then unflattens
the result back to its original depth.
Proto-list-deep does not disturb any of proto-list's functionality (and passes all of proto-list's tests), so you can use it in place of proto-list if you wish.
Proto-list-deep flattens the objects by concatenating keys together with a
delimeter. By default it uses :. So, your object keys CANNOT contain this
delimeter, else the unflattening will fail. You can change this delimeter
in the ProtoListDeep() constructor.
var ProtoListDeep = require('proto-list-deep');
var p = new ProtoListDeep();
p.push({
fruit: { green: 'apple' }
});
p.push({
fruit: { green: 'lime', yellow: 'lemon' }
});
console.log(p.snapshot);
// { fruit: { green: 'apple' } }
console.log(p.deepSnapshot);
// { fruit: { green: 'apple', yellow: 'lemon' } }
FAQs
Extends proto-list with a 'deepSnapshot'
We found that proto-list-deep 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.