Gathering detailed insights and metrics for jsonpointer
Gathering detailed insights and metrics for jsonpointer
Gathering detailed insights and metrics for jsonpointer
Gathering detailed insights and metrics for jsonpointer
JSON Pointer (RFC6901) implementation for Node.js
npm install jsonpointer
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
196 Stars
104 Commits
28 Forks
6 Watching
69 Branches
17 Contributors
Updated on 21 Aug 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-4.1%
1,294,189
Compared to previous day
Last week
2.3%
7,598,760
Compared to previous week
Last month
14.9%
30,680,189
Compared to previous month
Last year
18%
310,361,126
Compared to previous year
2
This is an implementation of JSON Pointer.
Looking to filter JSON from the command line? Check out jsonpointer-cli.
1var jsonpointer = require('jsonpointer'); 2var obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]}; 3 4jsonpointer.get(obj, '/foo'); // returns 1 5jsonpointer.get(obj, '/bar/baz'); // returns 2 6jsonpointer.get(obj, '/qux/0'); // returns 3 7jsonpointer.get(obj, '/qux/1'); // returns 4 8jsonpointer.get(obj, '/qux/2'); // returns 5 9jsonpointer.get(obj, '/quo'); // returns undefined 10 11jsonpointer.set(obj, '/foo', 6); // sets obj.foo = 6; 12jsonpointer.set(obj, '/qux/-', 6) // sets obj.qux = [3, 4, 5, 6] 13 14var pointer = jsonpointer.compile('/foo') 15pointer.get(obj) // returns 1 16pointer.set(obj, 1) // sets obj.foo = 1
$ npm test
All tests pass.
$
(c) 2011-2021 Jan Lehnardt jan@apache.org & Marc Bachmann https://github.com/marcbachmann
Thanks to all contributors.
MIT License.
The latest stable version of the package.
Stable Version
1
5.6/10
Summary
Prototype Pollution in node-jsonpointer
Affected Versions
< 5.0.0
Patched Versions
5.0.0
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 4/13 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
23 existing vulnerabilities detected
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