The data schema is based on Open Graph Protocol metadata spec but slightly modified to add further context/expansion in the default :profile
& :book
types while also adding a new :link
type.
$ npm i darcy
# or
$ yarn add darcy
then...
const darcy = require('darcy')
// or
import darcy from 'darcy'
You can query my data directly from: https://darcy.netlify.com/.netlify/functions/get
Examples:
# curl
curl -v https://darcy.netlify.com/.netlify/functions/get # me...
// fetch
fetch('https://darcy.netlify.com/.netlify/functions/get')
.then(res => res.json())
.then(json => console.log(json)) // me...
// axios
require('axios').get('https://darcy.netlify.com/.netlify/functions/get')
.then(res => console.log(res.data)) // me...