browser-sdk-info
v1.0.22
Published
[![npm version](https://badge.fury.io/js/browser-sdk-info.svg)](https://badge.fury.io/js/browser-sdk-info)
Downloads
5
Readme
Browser SDK Info
Welcome to Browser SDK Info, a powerful JavaScript SDK designed to fetch detailed browser information and generate browser fingerprints with ease.
Table of Contents
Installation
Install the SDK using npm:
npm install browser-sdk-info
```javascript
import { load, getBrowserDetails } from 'browser-sdk-info';
const browserInfo = getBrowserInfo();
console.log(browserInfo);
load().then(data => {
console.log(data);
});
TypeScript Example
tsconfig.json change
```json
{
"compilerOptions": {
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"paths": {
"browser-sdk-info": ["node_modules/browser-sdk-info/dist/index.d.ts"] //add in tsconfig.json file for browser-sdk.info
}
},
"include": ["src/**/*.ts", "node_modules/browser-sdk-info/dist/index.d.ts"] //add in tsconfig.json file for browser-sdk.info
}
```
TypeScript code
```typescript
import { load, getBrowserDetails } from "browser-sdk-info";
const browserInfo = getBrowserInfo();
console.log(browserInfo);
load().then((data) => {
console.log(data);
});
```