See the API →
yarn add @compai/url-to-json # npm install --save @compai/url-to-json
import { toJSON } from '@compai/url-to-json' toJSON('https://components.ai').then(console.log)