@laurelandwolf/data

Laurel & Wolf Data

Stats

StarsIssuesVersionUpdatedCreatedSize
@laurelandwolf/data
281.10.04 years ago6 years agoMinified + gzip package size for @laurelandwolf/data in KB

Readme

data

Laurel & Wolf Data

Data

Install

npm install lw-data --save

Usage

HTTP

import {sdk, serialize} from 'lw-data'

let api = sdk({
  headers: {
    custom : 'header'
  }
})

api()
  .projects()
  .get()
  .then(res => {

    let resources = serialize.response(res.body);
    console.log(resources);
  })

Streaming

import {sdk} from 'lw-data'

let api = sdk({
  headers: {
    custom : 'header'
  }
})

api.createStream(({headers}) => {

    // return observable
})

api()
  .projects()
  .stream('created')
  .subscribe(res => {


  })

api.createStream(({headers}) => {

    // return observable
})

api()
  .submissions()
  .stream()
  .subscribe(res => {


  })

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.