0.1.2 • Published 3 years ago

ts-devrant v0.1.2

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

The great Rantscript done better in TypeScript

Know what to provide! request-example

Know what you get! response-suggestions

Size

  • 16K minified (using webpack, browser target)
  • UMD Module 40K du -sh -I "*.d.ts" lib
  • Browser Module 36K du -sh -I "*.d.ts" browser

Different endpoint / Updating config

import DevRantAPI from "ts-devrant";

DevRantAPI.updateConfig({
    api: "https://my-super-secret-api.io/",
});

Custom requests

Endpoint not available, or not documented? Make a custom request!

import DevRantAPI from 'ts-devrant'

DevRantAPI.request(
    'secret-endpoint',
    {
        myBody: true
    },
    {
        header: {
            x-new-header: "secret"
        }
    }
)
0.0.9-rc.1

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago