
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Treet formats objects as trees, which is apparently a really difficult concept to understand sometimes.
Install:
npm install treet
Require:
var treet = require('treet');
Use:
console.log(treet({a: {complicatedly: {nested: ['object']}}}));
Output:
Object
a: Object
complicatedly: Object
nested: Array
0: "object"
Handles circular references by pointing to the location of the circular referencee above the circular referencer. For example:
var obj = {};
obj.obj = {obj: obj};
console.log(treet(obj));
would output:
Object
obj: Object
obj: .obj
Numerical indices in strings only are ignored; negative zero is displayed as -0; strings are displayed JSON-encoded; numbers, dates, and regular expressions are displayed as one would expect; anything else is given by the name of its constructor.
FAQs
Formats objects as trees.
We found that treet 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.