# stackjam

> 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.

Latest version **0.0.0-alpha.25** (published 2017-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install stackjam
pnpm add stackjam
yarn add stackjam
bun add stackjam
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0-alpha.25 |
| Published | 2017-01-05 |
| First published | 2016-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7.1.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stackjam |
| Maintainers | waffleau |
| Keywords | stackjam |

## Links

- npm: https://www.npmjs.com/package/stackjam
- Repository: https://github.com/waffleau/stackjam-client
- Homepage: https://stackjam.com
- Issues: https://github.com/waffleau/stackjam-client/issues
- npm.io page: https://npm.io/package/stackjam

## Dependencies (1)

- [query-string](https://npm.io/package/query-string.md) ^4.2.3

## Recent versions

- 0.0.0-alpha.25 (latest) — 2017-01-05
- 0.0.0-alpha.23 — 2016-12-19
- 0.0.0-alpha.22 — 2016-12-13
- 0.0.0-alpha.21 — 2016-11-18
- 0.0.0-alpha.20 — 2016-11-15
- 0.0.0-alpha.19 — 2016-11-15
- 0.0.0-alpha.18 — 2016-11-15
- 0.0.0-alpha.17 — 2016-11-15
- 0.0.0-alpha.16 — 2016-11-15
- 0.0.0-alpha.15 — 2016-11-15
- 0.0.0-alpha.14 — 2016-11-15
- 0.0.0-alpha.13 — 2016-11-15
- 0.0.0-alpha.12 — 2016-11-15
- 0.0.0-alpha.11 — 2016-11-15
- 0.0.0-alpha.10 — 2016-11-15
- … 9 more at https://npm.io/package/stackjam/versions

## README

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

---
_Source: https://npm.io/package/stackjam · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
