Skip to content

devRant-Community/ts-devrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

632394f · Apr 22, 2021

History

34 Commits
Oct 8, 2020
Apr 22, 2021
Apr 22, 2021
Apr 22, 2021
Oct 7, 2020
Oct 8, 2020
Apr 22, 2021
Apr 22, 2021
Apr 22, 2021
Apr 22, 2021
Oct 8, 2020
Apr 22, 2021
Apr 22, 2021

Repository files navigation

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"
        }
    }
)

About

DevRant API in TypeScript inspired by RantScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published