Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joonhocho/tsapis

Various cloud services API response types documented and written in TypeScript
https://github.com/joonhocho/tsapis

Last synced: about 1 month ago
JSON representation

Various cloud services API response types documented and written in TypeScript

Awesome Lists containing this project

README

        

# tsapis
Various cloud services API response types documented and written in TypeScript.

[![npm version](https://badge.fury.io/js/tsapis.svg)](https://badge.fury.io/js/tsapis)
[![npm](https://img.shields.io/npm/dw/tsapis.svg)](https://www.npmjs.com/package/tsapis)
![npm type definitions](https://img.shields.io/npm/types/tsapis.svg)
[![Build Status](https://travis-ci.org/joonhocho/tsapis.svg?branch=master)](https://travis-ci.org/joonhocho/tsapis)
[![Dependency Status](https://david-dm.org/joonhocho/tsapis.svg)](https://david-dm.org/joonhocho/tsapis)
[![GitHub](https://img.shields.io/github/license/joonhocho/tsapis.svg)](https://github.com/joonhocho/tsapis/blob/master/LICENSE)

## Motivation
Many great cloud services APIs do not have their own npm repositories, or even if they do, many of them are missing types.
This package is here to help you.
You are welcome to help typing all the great cloud services out there!

## Get Started
```
npm install -D tsapis
```
or
```
yarn add -D tsapis
```

## How to Use
```typescript
import { IpwhoisResponse } from 'tsapis';

// ...later in code
const res: IpwhoisResponse = await axios.get('http://free.ipwhois.io/json/1.1.1.1').data;
```

## Supported Services

### IP Geolocation API:
- [ipwhois.io](https://ipwhois.io)
- [ipdata.co](https://ipdata.co)

### User agent parsing service:
- [UserAgent.App](https://useragent.app/)

## Contribute
Pull Requests are welcome!
Just try to be consistent with existing naming conventions and coding styles.
Names must be concise, easy to read, and precisely descriptive.
I've setup prettier, so make sure your codes are auto formatted according to my prettier setup.

## License
[MIT License](https://github.com/joonhocho/tsapis/blob/master/LICENSE)