Skip to content

rybesh/jsonld-request

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

npm install jsonld-request
var jsonld_request = require('jsonld-request');

Usage

// read from stdin
jsonld_request('-', function(err, res, data) {
  // handle errors or use data
});

// read from URL
jsonld_request('https://www.example.com/resource', function(err, res, data) {
  // handle errors or use data
});

// read from file
jsonld_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

About

LIbrary to load JSON-LD from stdin, URLs, or files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%