0.0.11 • Published 8 years ago

marq v0.0.11

Weekly downloads
9
License
MIT
Repository
-
Last release
8 years ago

marq Build Status Coverage Status

Generate markdown posts from JSON API responses!

Magic

Note: Currently only setup to do parsing on a static CURL return file.

Not actually hitting HubSpot's API, YET!

Install

npm install marq --save-dev

Basic Usage

import marq from 'marq';

const config = {
  hubspot: {
    key: 'demo',
  },
  dest: './_posts/',
  template: require('./my-template'),
};

const remapPostData = (post) => {
  return Object.assign({}, post, {
    customData: 'MAGIC'
  });
};

marq(config, remapPostData);

Options

hubspot

TypeDescription
objectAPI credentials for Hubspot.

dest

TypeDefaultDescription
string./_postsDirectory for marq to save posts in.

template

TypeDescription
stringLodash compatible template for marq to use.

remapPostData

TypeDescription
functionCallback function to adjust the template post data.

API Notes

Check out HubSpot's API docs

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago