JSPM

jsonld-extract

0.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 100
  • Score
    100M100P100Q80293F
  • License MIT

A damn simple tool to extract json-ld metadata from webpage using jquery like api (jQuery, Cheerio, CashDOM, ...).

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 ...).

npm

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);