1.1.0 โข Published 5 months ago
@odg/tls v1.1.0
Table of Contents
๐ Benefits
- ๐ Speed performance Inversion of control
- ๐จ Code Quality
- ๐ Use Interface
- ๐งช Teste with 100% coverage
๐ Libraries
๐ Dependencies
- Node.js 18 or later
- Yarn Optional/Recommended
- ODG TsConfig Last Version
- ODG Axios Last Version
โฉ Get Started
๐ฉ You can use https://github.com/Carcraftz/TLS-Fingerprint-API and its forks to have an easy TLS server
๐ Installation
yarn add @odg/tls
๐ป Usage
For simple example usage, you can use Inversify for Dependency Injection
const tlsMessage = new TlsMessage({
tls: {
url: "http://localhost:8082",
}
});
await tlsMessage.request({
url: "https://tls.browserleaks.com/json",
});
๐ Start Project
First install dependencies with the following command
yarn install
# or
npm install
๐จ Build and Run
To build the project, you can use the following command
if you change files, you need to run
yarn build
andyarn start
again
yarn build && yarn start
# or
yarn dev
๐งช Teste Code
To Test execute this command
yarn test
# or
yarn test:watch