arena-ts

A typescript API client for Are.na

Usage no npm install needed!

<script type="module">
  import arenaTs from 'https://cdn.skypack.dev/arena-ts';
</script>

README

arena-ts

Build Status Coverage Status

A typescript client for are.na. Compatible in node and browser environments.

You may also want to check out arena-js.

This is a work in progress and a partial implementation.

Installation

// using npm
npm install arena-ts
// using yarn
yarn add arena-ts

Usage

Simple Example:
import { ArenaClient } from 'arena-ts';

const client = new ArenaClient();

client.channels().then(console.log);
Node JS

To use this library in Node you will need to inject your choice of Fetch API compatible libraries when instantiating the client.A good choice is node-fetch. Fetch polyfills have been excluded from this package to make it ligher for browsers where fetch is included natively.

For example:

import { ArenaClient } from 'arena-ts';
import fetch from 'node-fetch'

const client = new ArenaClient({ fetch });

client.channels().then(console.log);

API

Check out the complete API Documentation.

This is based on Arena's Restful API.