0.0.0-alpha.25 • Published 7 years ago

stackjam v0.0.0-alpha.25

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

This library is a very thin wrapper over the Stackjam API services. Its only goal is to unopinionatedly abstract some of the underlying resource calls, so that the consumer can focus on the what, not the how.

Dependencies

This library utilises the ES6 fetch API. Polyfilling these libraries is recommended. The simplest way to do this is to use Polyfill.io, but you can do it in whichever way makes the most sense for your project.

To use Polyfill.io, include the following in your HTML:

<script src="https://cdn.polyfill.io/v2/polyfill.js?features=fetch"></script>

Usage

import Stackjam from 'stackjam'

const api = new Stackjam('example')

api.resources.create({
  schema: 'test',
  content: {
    value: 'I am some content'
  }
}).then(resource => {
  console.log(resource.data)
})

api.resources.list().then(response => {
  response.data.map(console.log)
})
0.0.0-alpha.25

7 years ago

0.0.0-alpha.23

7 years ago

0.0.0-alpha.22

7 years ago

0.0.0-alpha.21

7 years ago

0.0.0-alpha.20

7 years ago

0.0.0-alpha.19

7 years ago

0.0.0-alpha.18

7 years ago

0.0.0-alpha.17

7 years ago

0.0.0-alpha.16

7 years ago

0.0.0-alpha.15

7 years ago

0.0.0-alpha.14

7 years ago

0.0.0-alpha.13

7 years ago

0.0.0-alpha.12

7 years ago

0.0.0-alpha.11

7 years ago

0.0.0-alpha.10

7 years ago

0.0.0-alpha.9

7 years ago

0.0.0-alpha.8

7 years ago

0.0.0-alpha.7

7 years ago

0.0.0-alpha.6

7 years ago

0.0.0-alpha.5

8 years ago

0.0.0-alpha.4

8 years ago

0.0.0-alpha.3

8 years ago

0.0.0-alpha.2

8 years ago

0.0.0-alpha.1

8 years ago