Skip to content

Instantly share code, notes, and snippets.

@aaronmfparr
aaronmfparr / ghost.js
Created June 24, 2018 17:11
A node script for making get requests of a Ghost blog's public API. Contains a function and configuration for a single blog.
// -----------------------------------------------------------------------------
// ghost.js
// Usage: node
// Send a get request to a ghost blog and return the response
// Ghost API: https://api.ghost.org/
// -----------------------------------------------------------------------------
//
// 'config' is not strictly necessary, as it is simply used to hold constants
const config = require('./config');