Gathering detailed insights and metrics for object-inspect
Gathering detailed insights and metrics for object-inspect
Gathering detailed insights and metrics for object-inspect
Gathering detailed insights and metrics for object-inspect
string representations of objects in node and the browser
npm install object-inspect
98.1
Supply Chain
95.5
Quality
84.7
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
143 Stars
247 Commits
36 Forks
10 Watching
6 Branches
8 Contributors
Updated on 12 Nov 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-6.6%
10,214,908
Compared to previous day
Last week
1.8%
60,148,470
Compared to previous week
Last month
12.5%
244,862,438
Compared to previous month
Last year
16.5%
2,488,444,747
Compared to previous year
string representations of objects in node and the browser
1var inspect = require('object-inspect'); 2var obj = { a: 1, b: [3,4] }; 3obj.c = obj; 4console.log(inspect(obj));
1var inspect = require('object-inspect'); 2 3var d = document.createElement('div'); 4d.setAttribute('id', 'beep'); 5d.innerHTML = '<b>wooo</b><i>iiiii</i>'; 6 7console.log(inspect([ d, { a: 3, b : 4, c: [5,6,[7,[8,[9]]]] } ]));
output:
[ <div id="beep">...</div>, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [ ... ] ] ] ] } ]
1var inspect = require('object-inspect')
Return a string s
with the string representation of obj
up to a depth of opts.depth
.
Additional options:
quoteStyle
: must be "single" or "double", if present. Default 'single'
for strings, 'double'
for HTML elements.maxStringLength
: must be 0
, a positive integer, Infinity
, or null
, if present. Default Infinity
.customInspect
: When true
, a custom inspect method function will be invoked (either undere the util.inspect.custom
symbol, or the inspect
property). When the string 'symbol'
, only the symbol method will be invoked. Default true
.indent
: must be "\t", null
, or a positive integer. Default null
.numericSeparator
: must be a boolean, if present. Default false
. If true
, all numbers will be printed with numeric separators (eg, 1234.5678
will be printed as '1_234.567_8'
)With npm do:
npm install object-inspect
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More