Package Exports
- jsonld-extract
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsonld-extract) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Json-LD Extractor
A damn simple tool to extract json-ld metadata from webpage using jquery like api (jQuery, Cheerio, CashDom ...).
Installation
npm install --save jsonld-extract
Tested APIs
- jQuery
- Cheerio
- CashDom
Usage example (Nodejs)
import jsonldextract from 'jsonld-extract';
import cheerio from 'cheerio';
const $ = cheerio.load( html );
const $jsonld = jsonldextract($);
const data = $jsonld('product.name');
console.log('Extracted data:', data);