poclibe2ets
v1.0.0
Published
[![npm version](https://badge.fury.io/js/angular2-expandable-list.svg)](https://badge.fury.io/js/angular2-expandable-list) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier
Downloads
3
Readme
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.