Gathering detailed insights and metrics for json-pointer
Gathering detailed insights and metrics for json-pointer
Gathering detailed insights and metrics for json-pointer
Gathering detailed insights and metrics for json-pointer
@swagger-api/apidom-json-pointer
Evaluate JSON Pointer expressions against ApiDOM.
json-schema-ref-parser
Parse, Resolve, and Dereference JSON Schema $ref pointers
@apidevtools/json-schema-ref-parser
Parse, Resolve, and Dereference JSON Schema $ref pointers
json-source-map
Parse/stringify JSON and provide source-map for JSON-pointers to all nodes
Some utilities for the JSON pointers described by RFC 6901
npm install json-pointer
Typescript
Module System
Node Version
NPM Version
99.8
Supply Chain
99.5
Quality
78
Maintenance
100
Vulnerability
100
License
JavaScript (95.92%)
HTML (2.87%)
Makefile (1.21%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
182 Stars
93 Commits
41 Forks
3 Watchers
7 Branches
11 Contributors
Updated on Jun 12, 2025
Minified
Minified + Gzipped
Latest Version
0.6.2
Package Id
json-pointer@0.6.2
Unpacked Size
97.71 kB
Size
23.02 kB
File Count
18
NPM Version
6.14.13
Node Version
14.17.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Some utilities for JSON pointers described by RFC 6901
Provides some additional stuff i needed but is not included in node-jsonpointer
1$ npm install json-pointer
1var pointer = require('json-pointer');
Looks up a JSON pointer in an object.
Array of reference tokens, e.g. returned by api.parse, can be passed as a pointer to .get, .set and .remove methods.
1var obj = { 2 example: { 3 bla: 'hello' 4 } 5}; 6pointer.get(obj, '/example/bla');
Sets a new value on object at the location described by pointer.
1var obj = {}; 2pointer.set(obj, '/example/bla', 'hello');
Removes an attribute of object referenced by pointer.
1var obj = { 2 example: 'hello' 3}; 4pointer.remove(obj, '/example'); 5// obj -> {}
Creates a dictionary object (pointer -> value).
1var obj = { 2 hello: {bla: 'example'} 3}; 4pointer.dict(obj); 5 6// Returns: 7// { 8// '/hello/bla': 'example' 9// }
Just like:
1each(pointer.dict(obj), iterator);
Tests if an object has a value for a JSON pointer.
1var obj = { 2 bla: 'hello' 3}; 4 5pointer.has(obj, '/bla'); // -> true 6pointer.has(obj, '/non/existing'); // -> false
Escapes a reference token.
1pointer.escape('hello~bla'); // -> 'hello~0bla' 2pointer.escape('hello/bla'); // -> 'hello~1bla'
Unescape a reference token.
1pointer.unescape('hello~0bla'); // -> 'hello~bla' 2pointer.unescape('hello~1bla'); // -> 'hello/bla'
Converts a JSON pointer into an array of reference tokens.
1pointer.parse('/hello/bla'); // -> ['hello', 'bla']
Builds a json pointer from an array of reference tokens.
1pointer.compile(['hello', 'bla']); // -> '/hello/bla'
Convenience wrapper around the api.
1pointer(object) // bind object 2pointer(object, pointer) // get 3pointer(object, pointer, value) // set
The wrapper supports chainable object oriented style.
1var obj = {anything: 'bla'}; 2var objPointer = pointer(obj); 3objPointer.set('/example', 'bla').dict();
9.8/10
Summary
json-pointer vulnerable to Prototype Pollution
Affected Versions
< 0.6.2
Patched Versions
0.6.2
5.6/10
Summary
Prototype Pollution in json-pointer
Affected Versions
<= 0.6.1
Patched Versions
0.6.2
6/10
Summary
Prototype pollution in json-pointer
Affected Versions
< 0.6.1
Patched Versions
0.6.1
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/19 approved changesets -- score normalized to 3
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
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
52 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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