Files
fingerprint/README.md
Valentin Silyutin c9751a19d7 Fix README.md
2025-09-23 16:34:54 +04:00

33 lines
609 B
Markdown
Raw 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 } from '@advdominion/fingerprint';
const fp = await get();
console.log(fp);
````
### Получение отпечатка и его отправка на сервер
```js
import { get } from '@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('/');
```