@stltio/stealth
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

Stlt - Stealth

Device fingerprinting

(work in progress)

See the working demo in action.

How to use

import stealth from '@stltio/stealth'
const result = await stealth()
const {
  local: {},
  remote: {},
  visitorId: 'abc...xyz',
  ms: 491
} = result

Use in ReactJs

import stealth from '@stltio/stealth'

const [data, setData] = useState({ local: {}, remote: {}, visitorId: '', ms: 0 })

useEffect(() => {
  const init = async () => {
    const s = await stealth()
    setData(s)
  }
  init()
}, [])

ApiKey

If apiKey is provided, send the payload to the server (more accurate results). Want an API_KEY? Contact us at hello@stlt.io.

Example with API_KEY

import stealth from '@stltio/stealth'
const result = await stealth({ apiKey: 'aaa...bbb'})
const {
  local: {},
  remote: {},
  visitorId: 'abc...xyz',
  ms: 491
} = result

/@stltio/stealth/

    Package Sidebar

    Install

    npm i @stltio/stealth

    Weekly Downloads

    53

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    488 kB

    Total Files

    9

    Last publish

    Collaborators

    • maurosala