@stltio/stealth
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -16,3 +16,4 @@ // import axios from 'axios' | ||
export default async function stealth() { | ||
return await Promise.all([ | ||
let start = window.performance.now() | ||
return Promise.all([ | ||
{ canvas: await canvas() }, | ||
@@ -57,2 +58,3 @@ { device: device() }, | ||
local, | ||
ms: parseInt(window.performance.now() - start), | ||
remote: {} | ||
@@ -59,0 +61,0 @@ } |
{ | ||
"name": "@stltio/stealth", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
"main": "index", | ||
"type": "module", | ||
"git_repository": "https://github.com/stlt-io/stealth.git", | ||
"homepage": "https://github.com/stlt-io/stealth.git", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"keywords": [ | ||
"fingerprint", | ||
"fingerprinting", | ||
"visitor-identifier", | ||
"fraud-detection", | ||
"browser", | ||
"signature", | ||
"canvas", | ||
"webgl", | ||
"audio", | ||
"fonts", | ||
"plugins", | ||
"user-agent", | ||
"timezone", | ||
"screen", | ||
"resolution", | ||
"language", | ||
"platform", | ||
"os", | ||
"cpu" | ||
], | ||
"author": "Stlt.io", | ||
"license": "ISC", | ||
@@ -13,0 +35,0 @@ "dependencies": { |
@@ -6,1 +6,30 @@ # Stlt - Stealth | ||
(work in progress) | ||
## How to use | ||
``` | ||
import stealth from '@stltio/stealth' | ||
const result = await stealth() | ||
const { | ||
local: {}, | ||
remote: {}, | ||
id: 'abc...xyz', | ||
ms: 491 | ||
} = result | ||
``` | ||
## Use in ReactJs | ||
``` | ||
import stealth from '@stltio/stealth' | ||
const [data, setData] = useState({ local: {}, remote: {}, id: '', ms: 0 }) | ||
useEffect(() => { | ||
const init = async () => { | ||
const s = await stealth() | ||
setData(s) | ||
} | ||
init() | ||
}, []) | ||
``` |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
88289
1
2
35
4060