hast-util-from-url

npm version CircleCI

Usage

CLI

hast-util-from-url http://path/to/html

// or

npx hast-util-from-url http://path/to/html

Node.js

const fromUrl = require('hast-util-from-url')

;(async () => {
    const hast = await fromUrl('http://path/to/html')
    console.log(JSON.stringify(hast))
})()