ctrl-content-manager
An abstraction around contentful.
Installation
Yarn is recommended for installation.
$ yarn add ctrl-content-manager
But you can still use npm:
$ npm install --save ctrl-content-manager
Usage
const _ = const CtrlContentManager = const cm = accessTokens: production: 'contentful_production_token' preview: 'contentful_preview_token' fetchInterval: 60 * 60 * 1000 isProduction: processenvNODE_ENV === 'production' space: 'contentful_space_id' parsing: keyed: tags: 'title' authors: 'name' singles: 'globalElements' 'blogPostElements' cm // Psuedo blog server codehttp
Methods
Full documentation to come soon!
License
Copyright (c) 2016 Martin Experiments LLC
MIT (https://www.opensource.org/licenses/MIT)