Name: jsonld-request
Owner: Digital Bazaar, Inc.
Description: LIbrary to load JSON-LD from stdin, URLs, or files.
Created: 2015-09-11 20:19:31.0
Updated: 2017-12-27 13:18:42.0
Pushed: 2017-12-18 17:54:24.0
Homepage: null
Size: 26
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This JavaScript node.js library is used to read data from stdin, URLs, or files and convert to JSON-LD via jsonld.js. It can process JSON-LD in JSON and RDFa in HTML and output JSON-LD.
install jsonld-request
s
jsonld_request = require('jsonld-request');
ead from stdin
ld_request('-', function(err, res, data) {
handle errors or use data
ead from URL
ld_request('https://www.example.com/resource', function(err, res, data) {
handle errors or use data
ead from file
ld_request('file.jsonld', function(err, res, data) {
handle errors or use data
Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com
http://github.com/digitalbazaar/jsonld-request