supercheer is a wrapper, wrapping superagent and cheerio, make it easy to do crawling webpage.
Install:
npm install supercheer --save
const supercheer = require('supercheer');
const r = await supercheer.query(
'https://www.google.com/',
{
title: 'title',
firstChar: 'title',
},
{
firstChar: (v) => v.slice(0, 1),
}
);
// {
// title: 'Google',
// firstChar: 'G',
// }
console.log(r);
MIT. See LICENSE for details.