jsonld-request
A library to read JSON-LD from stdin, URLs, and files.
Last updated 4 years ago by davidlehn .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jsonld-request 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.0                                ...           latest (4 years ago)

3 Versions

  • 0.2.0                                ...           4 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (2)

Copyright 2014 - 2021 © npmmirror.com |