Files
fingerprint/README.md
Valentin Silyutin 4b5fd448ef v1.0.0
2025-09-23 16:28:25 +04:00

33 lines
599 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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('/');
```