hast-util-from-url Install npm install hast-util-from-url Usage CLI hast-util-from-url http://path/to/html Node.js const fromUrl = require('hast-util-from-url') ;(async () => { const jsonObj = await fromUrl('http://path/to/html') console.log(JSON.stringify(jsonObj)) })()