1.0.0 • Published 2 years ago

poclibe2ets v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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 ©

1.0.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago