0.3.0 • Published 6 years ago

webmiddle-service-cheerio-to-json v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

NameDescription
nameThe name of the returned resource.
fromThe HTML/XML resource to convert.
fullConversion (optional)Set this to true to do a 1:1 conversion, without having to specify a schema.
childrenThe schema for the CheerioToVirtual conversion.