
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A JavaScript library for flattening and reassembling object graphs.
This library was written to handle packing up deep JS object graphs to send over the wire. It does this by traversing the entire graph recursively, and packing entities into a flat data structure.
This library is similar to normalizr, but with a few differences:
objectKind: global namespace
object
withHeap allows you to manually set the heap for a pack
Kind: instance property of Daypack
Returns: this
Params
withHead allows you to manually set the head for a pack
Kind: instance property of Daypack
Returns: this
Params
pack packs a value into the heap, and updates the head
Kind: instance property of Daypack
Returns: this
Params
packHeap packs a value into the heap, but does not update the head
Kind: instance property of Daypack
Returns: this
Params
unpack unpacks the head, or accepts an optional "head" to unpack
Kind: instance property of Daypack
Returns: the unpacked head
Params
each unpacks everything in the heap in isolation, and calls the 'each' function on it
Kind: instance property of Daypack
Returns: this
Params
filter unpacks everything in the heap in isolation, and calls the 'filter' function on it,
to build a new pack
Kind: instance property of Daypack
Returns: a new DayPack instance with only the filtered entities in the heap
Params
map unpacks everything in the heap in isolation, and calls the 'map' function on it,
to build a new pack
Kind: instance property of Daypack
Returns: a new DayPack instance with the mapped entities in the heap
Params
reduce unpacks everything in the heap in isolation, and calls the 'reducer' function on it,
to build a new reduced result
Kind: instance property of Daypack
Returns: a new DayPack instance with only the filtered entities in the heap
Params
toObject converts the pack into a serializable object
Kind: instance property of Daypack
Returns: a serializable version of the pack
fromObject de-serializes a serialized version into a DayPack instance
Kind: instance property of Daypack
Returns: this
Params
toJSON converts the pack into a JSON object
Kind: instance property of Daypack
Returns: a JSON string
fromJSON de-serialized a JSON string into this pack
Kind: instance property of Daypack
Returns: a JSON string
Params
fromJSON de-serialized a JSON string into this pack
Kind: instance property of Daypack
Returns: a JSON string
Params
Kind: static class of Daypack
A function that packs a JavaScript value.
Kind: static method of Daypack
Returns: an flattened object
Params
FAQs
A JavaScript library for flattening and reassembling object graphs.
We found that daypack 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.