0.3.0 • Published 6 years ago
webmiddle-service-cheerio-to-json v0.3.0
webmiddle-service-cheerio-to-json
Service that converts a resource, whose content is parsed by the Cheerio library (a NodeJS implementation of jQuery), to a JSON resource with the given schema.
Install
npm install --save webmiddle-service-cheerio-to-json
How it works
It just pipes the resource through the respective to virtual and from virtual services.
Properties
Name | Description |
---|---|
name | The name of the returned resource. |
from | The HTML/XML resource to convert. |
fullConversion (optional) | Set this to true to do a 1:1 conversion, without having to specify a schema. |
children | The schema for the CheerioToVirtual conversion. |