bloga-core

0.0.4 • Public • Published

Bloga core

Table of Contents

About

For get config from bloga

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them.

Give examples

Installing

A step by step series of examples that tell you how to get a development env running.

Say what the step will be

yarn add bloga-core

And repeat

until finished

End with an example of getting some data out of the system or using it for a little demo.

Usage

Add notes about how to use the system.

Get Site Config

const bloga = require('bloga-core')
const init = async ()=>{
  // if there is no options, it will read enviroment var
  // export BLOGA_SITE_CONFIG_URL = https://bloga.owenyoung.com/api/v1/sites/iBgRIF1KUH2uCzzGQm5ld/settings.json
  const {data} = await bloga.getSiteConfig({
    url:'https://bloga.owenyoung.com/api/v1/sites/iBgRIF1KUH2uCzzGQm5ld/settings.json'
  })
}

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i bloga-core

    Weekly Downloads

    29

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    3.82 kB

    Total Files

    4

    Last publish

    Collaborators

    • theowenyoung