sjr

skeemas-json-refs

Lightweight solution for resolving json-schema $refs

Showing:

Popularity

Downloads/wk

300

GitHub Stars

0

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

0.8KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

skeemas-json-refs

Lightweight solution for resolving JSON Refs

Install

npm install skeemas-json-refs

Usage

var jsonRefs = require('skeemas-json-refs'),
    refs = jsonRefs();

refs.add('/some/uri/ref', { 
    nested: { foo:'bar' },
    list: [0, 1, 2]
});

refs.get('/some/uri/ref'); 
// => the whole object

refs.get('/some/uri/ref#/nested/foo'); 
// => 'bar'

refs.get('/some/uri/ref#/list'); 
// => [0, 1, 2]

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100