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
@types/json-pointer
TypeScript definitions for json-pointer
@swagger-api/apidom-json-pointer
Evaluate JSON Pointer expressions against ApiDOM.
@hyperjump/json-pointer
An RFC-6901 JSON Pointer implementation
@sagold/json-pointer
json pointer - failsafe data retrieval from js and json objects
Some utilities for the JSON pointers described by RFC 6901
npm install json-pointer
99.8
Supply Chain
99.5
Quality
78
Maintenance
100
Vulnerability
100
License
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
178 Stars
93 Commits
42 Forks
4 Watching
7 Branches
12 Contributors
Updated on 08 Nov 2024
Minified
Minified + Gzipped
JavaScript (95.92%)
HTML (2.87%)
Makefile (1.21%)
Cumulative downloads
Total Downloads
Last day
-37.6%
206,374
Compared to previous day
Last week
-8.4%
1,534,147
Compared to previous week
Last month
-2.6%
6,826,755
Compared to previous month
Last year
75.9%
56,778,160
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();
The latest stable version of the package.
Stable Version
1
9.8/10
Summary
json-pointer vulnerable to Prototype Pollution
Affected Versions
< 0.6.2
Patched Versions
0.6.2
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
50 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