@nova-studios-ltd/typescript-netapi
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Node.js Package

Typescript NetAPI

Description

NPM package for our internal NetAPI class

Requirements

  • Node.js
    • npm (normally included)
    • typescript

Installation

npm install @nova-studios-ltd/typescript-netapi

Basic Usage

import { NetAPI } from "@nova-studios-ltd/typescript-netapi";

NetAPI.Init("https://api.novastudios.uk");

// GET (Applies to all methods) Without headers
await NetAPI.GET<string>("/Channel/my-new-channel");

// GET (Applies to all methods) With headers
await NetAPI.GET<string>("/Channel/my-new-channel-2", new NetHeaders().WithAuthorization("MyPassword"));

Getting the Source Code

Download a zipped version here or clone via HTTPS:

git clone https://github.com/Nova-Studios-Ltd/Typescript-NetAPI-Package.git

License

This project is currently licensed under a GPLv3 license.

Readme

Keywords

Package Sidebar

Install

npm i @nova-studios-ltd/typescript-netapi

Weekly Downloads

2

Version

1.1.0

License

GPL-3.0

Unpacked Size

24.5 kB

Total Files

16

Last publish

Collaborators

  • gentlytech
  • nova1545