@novashield/client
Version:
Device fingerprinting
34 lines (26 loc) • 723 B
Markdown
## NovaShield Client SDK
A JavaScript SDK for integrating NovaShield's device fingerprinting API.
### Installation with NPM
```bash
npm install @novashield/client
```
```javascript
import NovaShield from "@novashield/client"
const novashield = NovaShield.init('YOUR_API_TOKEN')
// Get the request id
novashield.lookupDevice().then(requestId => console.log(requestId))
```
### Installation with CDN
```html
<head>
...
<script src="https://cdn.jsdelivr.net/npm/@novashield/client@latest/dist/novashield.min.js"></script>
</head>
```
```html
<script>
const novashield = NovaShield.init('YOUR_API_TOKEN')
// Get the request id
novashield.lookupDevice().then(requestId => console.log(requestId))
</script>
```