1.3.2 โข Published 7 months ago
@odg/tls v1.3.2
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 buildandyarn startagain
yarn build && yarn start
# or
yarn dev๐งช Teste Code
To Test execute this command
yarn test
# or
yarn test:watch