This commit is contained in:
Valentin Silyutin
2025-09-23 16:10:35 +04:00
commit 4b5fd448ef
12 changed files with 1414 additions and 0 deletions

32
README.md Normal file
View File

@@ -0,0 +1,32 @@
# fingerprint
## Использование
```js
import { get } '@advdominion/fingerprint';
const fp = await get();
console.log(fp);
````
### Получение отпечатка и его отправка на сервер
```js
import { get } '@advdominion/fingerprint';
const send = async (url) => {
const fp = await get();
try {
await fetch(url, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(fp),
});
} catch (error) {
console.error(error);
}
};
await send('/');
```