0.8.0 • Published 10 months ago

@stltio/stealth v0.8.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Stlt - Stealth

Device fingerprinting and browser information.

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

Ignore list

You can exclude some tests by providing an array of keys to ignore.

Example with ignore list

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

Debug

You can enable debug mode by setting debug to true.

It will print in the console the lolcal generated payload and the remote response.

Example with debug

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

10 months ago

0.7.1

11 months ago

0.6.2

12 months ago

0.7.0

11 months ago

0.6.1

12 months ago

0.6.0

12 months ago

0.5.0

1 year ago

0.4.5

1 year ago

0.4.4

1 year ago

0.3.0

1 year ago

0.4.1

1 year ago

0.3.1

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago