statuspage.ts
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Statuspage.ts

Statuspage.ts is a simple library for interacting with the Statuspage.io API.

NOTE: This library may have bugs and is/can not be fully tested. Statuspage.io's documentation is pretty outdated as well so some types may not be correct. If you find any issues, please open an issue or PR.

Why?

I wanted to create a simple library for interacting with the Statuspage API with Type Safety. I could not find any libraries that were up to date and/or had a good API. So I created this one.

Important

This libary does not have a automatic test suite as Statuspage's documentation is not accurate and I do not believe mocking the API is a good idea. Suggestions are welcome!

Installation

npm install statuspage.ts

Usage

const Statuspage = require("statuspage.ts");

const statuspage = new Statuspage("YOUR_API_KEY");

statuspage.incidents.getAll("YOUR_PAGE_ID").then((incidents) => {
	console.log(incidents);
});

TODO

These functionalities are not yet implemented. If you would like to help, please open a PR.

License

MIT

This project does is not affiliated with Statuspage.io in any way.

Package Sidebar

Install

npm i statuspage.ts

Weekly Downloads

22

Version

0.2.0

License

MIT

Unpacked Size

84.2 kB

Total Files

41

Last publish

Collaborators

  • timeraa