0.0.8 • Published 3 years ago

@dopamyn/jsonld-extract v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Dopamyn 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 @dopamyn/jsonld-extract

Tested APIs

  • jQuery
  • Cheerio
  • CashDom

Usage example (Nodejs)

import jsonldextract from '@dopamyn/jsonld-extract';
import cheerio from 'cheerio';

const $ = cheerio.load( html );
const $jsonld = jsonldextract($);

const data = $jsonld('product.name');

console.log('Extracted data:', data);
0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago