0.1.3 • Published 7 months ago

@rr0/case v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

RR0 Case API

This API allows to fetch case records from a RR0 server.

Setup

npm install

Usage

import { RR0Catalog } from "@rr0/case"

const catalog = new RR0Catalog()
await catalog.init()

/** @type RR0Case */
const roswellCase = catalog.casesFiles.find(url => url.includes("/Roswell/"))
const firstCase = await catalog.fetchCase(roswellCase)
assert.equal(firstCase.title, "Roswell")

const mantellPeople = catalog.peopleFiles.find(url => url.includes("/MantellThomas/"))
const firstPeople = await catalog.fetchPeople(mantellPeople)
assert.equal(firstPeople.title, "Mantell, Thomas Francis")

Build

npm run build

Test

npm run test

Deployment

Increase the version number in package.json, then:

npm publish

will build & test then publish a new version of the package.

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago