poclibe2ets
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

npm version code style: prettier

Sensedia Poc lib E2e TypeScript

poclibe2ets

Prerequisites

This project requires NodeJS (version 16 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

$ npm -v && node -v
8.15.0
v16.17.1

Getting Started

Installation

BEFORE YOU INSTALL: please read the prerequisites

To install and set up the library, run:

$ npm install poclibe2ets

Usage

generateOriginId()

import { Utils } from "poclibe2ets"

let test = Utils.generateOriginId()

console.log(test); //output random string

createRandomString(size: number)

import { Utils } from "poclibe2ets"

let test = Utils.createRandomString(10)

console.log(test); //output random string

Create a word the size you want

TokenManager

get(url: string, method: string) return AxiosResponse

import { TokenManager } from "poclibe2ets"

async function test() {
  let teste = await TokenManager.get("https://httpbin.org/status/200", "GET")

  console.log("status: ", teste.status) // output status: 200
}

test()

Make requests with the methods you want

Authors

  • Thiago Luiz - Initial work - thiiluh

See also the list of contributors who participated in this project.

License

MIT License ©

Readme

Keywords

none

Package Sidebar

Install

npm i poclibe2ets

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

52.5 kB

Total Files

16

Last publish

Collaborators

  • thiiluh