poclibe2ets
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
BEFORE YOU INSTALL: please read the prerequisites
To install and set up the library, run:
$ npm install poclibe2ets
import { Utils } from "poclibe2ets"
let test = Utils.generateOriginId()
console.log(test); //output random string
import { Utils } from "poclibe2ets"
let test = Utils.createRandomString(10)
console.log(test); //output random string
Create a word the size you want
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
- Thiago Luiz - Initial work - thiiluh
See also the list of contributors who participated in this project.