digitalbazaar/jsonld-request

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

jsonld-request

Dependency Status

Introduction

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.

Installation
install jsonld-request
s
jsonld_request = require('jsonld-request');
Usage
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

Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com

Source Code

http://github.com/digitalbazaar/jsonld-request


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.