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'
  })
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    27
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    27
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i bloga-core

Weekly Downloads

27

Version

0.0.4

License

MIT

Unpacked Size

3.82 kB

Total Files

4

Last publish

Collaborators

  • theowenyoung