Skip to content

darcyclarke/darcy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👤 darcy

npm version Build Status Known Vulnerabilities Greenkeeper badge Netlify Status

Darcy's Banner

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.

Add me to your deps

$ npm i darcy
# or
$ yarn add darcy

then...

const darcy = require('darcy')
// or
import darcy from 'darcy'

API Requests

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...