Gathering detailed insights and metrics for @iampava-devtools-ds/object-parser
Gathering detailed insights and metrics for @iampava-devtools-ds/object-parser
Gathering detailed insights and metrics for @iampava-devtools-ds/object-parser
Gathering detailed insights and metrics for @iampava-devtools-ds/object-parser
npm install @iampava-devtools-ds/object-parser
Typescript
Module System
Node Version
NPM Version
73.1
Supply Chain
84.7
Quality
75.3
Maintenance
100
Vulnerability
100
License
TypeScript (82.1%)
MDX (7.18%)
JavaScript (6.69%)
CSS (3.39%)
HTML (0.64%)
Total Downloads
540
Last Day
1
Last Week
9
Last Month
11
Last Year
147
253 Stars
163 Commits
15 Forks
5 Watching
5 Branches
8 Contributors
Latest Version
1.2.5
Package Id
@iampava-devtools-ds/object-parser@1.2.5
Unpacked Size
64.90 kB
Size
10.31 kB
File Count
12
NPM Version
lerna/3.22.1/node@v18.13.0+arm64 (darwin)
Node Version
18.13.0
Publised On
21 Sept 2023
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
9
Compared to previous week
Last month
266.7%
11
Compared to previous month
Last year
-62.6%
147
Compared to previous year
1
Object parser is a utility used by the the Object Inspector
package, which creates a JSON tree structure with node types that help simplify the JavaScript type system. It also uses TypeScript to make logic around using the tree strongly typed.
If you plan on using this, I recommend looking at the type definitions for the best description of how it formats.
The current supported types are:
1export type SupportedTypes = 2 | boolean 3 | null 4 | number 5 | string 6 | Error 7 | symbol 8 | undefined 9 | Date 10 | RegExp 11 | object 12 | Map<any, any> 13 | WeakMap<any, any> 14 | Set<any> 15 | WeakSet<any> 16 | Promise<any> 17 | any[] 18 | Function;
1npm i @iampava-devtools-ds/object-parser 2# or with yarn 3yarn add @iampava-devtools-ds/object-parser
1import parse from "@iampava-devtools-ds/object-parser"; 2 3const data = { foo: "bar" }; 4const sortKeys = true; 5const result = await parse(data, sortKeys);
Unfortunately, the parser has to be asynchronous in order to support Promises. From what I can find, there is no good way to inspect a promise synchronously. In the browser devtools they have access to the full Javascript engine.
This parser is in service to building a UI, which needs to be responsive. In deeply nested objects, we want to avoid having to parse everything before we can render the top node. To stop this, the parser only evaluates the current node, and then returns functions so that you can get the children on demand. For example, when you are expanding a tree view.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/19 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
126 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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