Skip to content

Commit d64ad5f

Browse files
authored
Merge pull request #1 from Rajesh-Royal/master
Deployed to NPM and Readme.md instructions updated.
2 parents de026fc + 733e855 commit d64ad5f

File tree

6 files changed

+18
-33
lines changed

6 files changed

+18
-33
lines changed

.npmrc

Whitespace-only changes.

README.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ This package generates a unique ID/String for different browsers. Like chrome, F
2121

2222
> ⚠ The code is completely open source and not relating to anyone, created in my spare time. [only for educational purpose]
2323
24+
> The algorithms used to encrypt/decrypt data - `murmurhash3_32_gc`, `cyrb53` and `javaHashCode`. Code is inside `.src/code/EncryptDecrypt.js`.
25+
2426
## :hear_no_evil: What's all the hullabaloo?
2527
<a href="https://broprintjs.netlify.app/" target="_blank">Broprint.js</a> helps JavaScript developers code visitors identifier more simply, readably, and securely. Whether you need to find a unique visitor, do analytics, browser fingerprinting, or do anything of the like while even preventing frauds, we've got you covered at a **cryptographically strong** level. The best part? Our library is extremely lightweight and developer friendly- which means it won't take a toll on your project, and it's uber-simple to implement. This library works on the concept of **canvas** fingerprint and **audio** fingerprint, the final result which a user get is the combination of **audio and canvas fingerprint**. We are using **cryptojs** under the hood for encryptions but you can easily tweek the library to remove the dependency. <br/><br/><br/>
2628
</br>

example/package-lock.json

Lines changed: 9 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@rajesh896/broprint.js": "^1.2.1",
6+
"@rajesh896/broprint.js": "^1.2.5",
77
"@testing-library/jest-dom": "^5.16.4",
88
"@testing-library/react": "^13.1.1",
99
"@testing-library/user-event": "^13.5.0",
@@ -41,4 +41,4 @@
4141
"last 1 safari version"
4242
]
4343
}
44-
}
44+
}

example/src/App.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1+
import { getCurrentBrowserFingerPrint } from '@rajesh896/broprint.js';
12
import React, { useState } from 'react';
23
import './App.css';
3-
import { getDeviceId } from './code/FingerPrint';
4+
45

56
function App() {
67
const [browserFingerprint, setBrowserFingerPrint] = useState("");
78
const getBrowserFingerPrint = () => {
8-
getDeviceId().then((res) => {
9+
getCurrentBrowserFingerPrint().then((res) => {
910
setBrowserFingerPrint(res)
1011
}).catch((err) => {
1112
setBrowserFingerPrint(JSON.stringify(err))
1213
})
13-
// getDeviceId().then((fingerprint) => {
14-
// setBrowserFingerPrint(fingerprint)
15-
// }).catch((err) => {
16-
// setBrowserFingerPrint(err)
17-
// })
1814
}
1915

2016
return (

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rajesh896/broprint.js",
3-
"version": "1.2.3",
3+
"version": "1.2.5",
44
"description": "The world's easiest, smallest and powerful visitor identifier for browsers.",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",
@@ -14,7 +14,7 @@
1414
"url": "git+https://github.com/Rajesh-Royal/Broprint.js.git"
1515
},
1616
"publishConfig": {
17-
"registry": "https://npm.pkg.github.com/"
17+
"registry": "https://registry.npmjs.org/"
1818
},
1919
"bin": {
2020
"getDeviceId()": "./lib/index.js"

0 commit comments

Comments
 (0)