Skip to content

Commit 4e1cf03

Browse files
committed
Code-refactor and orphan branch [repo initialized]
0 parents  commit 4e1cf03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+28948
-0
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: rajeshroyal
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
baseurl: /video-thumbnails-generator

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
“files”: [“lib/**/*”]
2+
/src
3+
/docs
4+
/example

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Onildo Aguiar
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.MD

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<h1 align="center">Broprint.js</h1>
2+
<p align="center">The world's easiest, smallest and powerful visitor identifier for browsers.</p>
3+
4+
<p align="center">
5+
<a href="https://github.com/Rajesh-Royal/Broprint.js"><img src="https://img.shields.io/badge/total%20size-2.12%20KB-brightgreen" height="20"/></a>
6+
<a href="https://www.npmjs.com/package/@rajesh896/broprint.js">
7+
<img src="https://img.shields.io/npm/v/@rajesh896/broprint.js" alt="Current NPM version">
8+
</a>
9+
<a href="https://twitter.com/intent/tweet?text=The world's easiest, smallest and powerful visitor identifier for browsers.&url=https://github.com/Rajesh-Royal/Broprint.js&hashtags=javascript,opensource,js,webdev,developers"><img src="http://randojs.com/images/tweetShield.svg" alt="Tweet" height="20"/></a>
10+
</p><br/><br/>
11+
12+
13+
<p align="center">
14+
This package generates a unique ID/String for different browsers. Like chrome, Firefox or any other browsers which support `canvas` and `audio` fingerprinting. You can easily do the browser fingerprinting with this library. Its small and minimal.</p>
15+
16+
<p align="center"><a href="https://github.com/Rajesh-Royal/Broprint.js"><img src="https://user-images.githubusercontent.com/24524924/163906729-f34e193a-e202-43ae-ba4b-c460da6cc911.gif" width="100%"/></a><a href="#"><img src="http://randojs.com/images/dropShadow.png" width="100%"/></a></p><br/>
17+
18+
19+
<p align="center"><a href="https://codesandbox.io/s/browser-fingerprinting-generate-unique-device-id-or-browser-id-507n2v" target="_blank">CodeSandbox, </a>
20+
<a href="https://broprintjs.netlify.app/" target="_blank" >Live Demo</a> </p>
21+
22+
## :hear_no_evil: What's all the hullabaloo?
23+
<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/>
24+
</br>
25+
26+
## :zap: Fast implementation
27+
**Step 1:** Install using npm or yarn:<br/>
28+
29+
Using npm:
30+
```JavaScript
31+
//Install:
32+
npm i @rajesh896/browser-fingerprint
33+
```
34+
Using Yarn:
35+
```Javascript
36+
//Install:
37+
yarn add @rajesh896/browser-fingerprint
38+
```
39+
<br/><br/>
40+
## :tada: Examples
41+
>### **In Reactjs**
42+
```javascript
43+
import { getDeviceId } from "@rajesh896/browser-fingerprint";
44+
45+
getDeviceId().then((fingerprint) => {
46+
// fingerprint is your unique browser id.
47+
// This is well tested
48+
49+
// the result you receive here is the combination of Canvas fingerprint and audio fingerprint.
50+
})
51+
```
52+
<br/>
53+
54+
>### Using this script in the html files
55+
1. Execute `npm i @rajesh896/browser-fingerprint`
56+
2. Then -
57+
```html
58+
<!DOCTYPE html>
59+
<html lang="en">
60+
61+
<head>
62+
<meta charset="UTF-8">
63+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
64+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
65+
<title>FingerPrint</title>
66+
</head>
67+
68+
<body>
69+
<script type="module">
70+
import("./node_modules/@rajesh896/browser-fingerprint/index.js").then((module) => {
71+
module.getDeviceId().then((fingerprint) => {
72+
console.log(fingerprint);
73+
})
74+
})
75+
</script>
76+
</body>
77+
78+
</html>
79+
```
80+
81+
- From version `1.1.0` onwards we have a dependency `crypto-js`. If you do not want to have this dependency then use the earlier versions of this library.
82+
83+
If you want to use it in simple `.html` file, please read the `index.html` file in the root directory.
84+
85+
This repository is for educational and demonstration purposes only!
86+
87+
## :clap: Supporters
88+
[![Stargazers repo roster for @Rajesh-Royal/Broprint.js](https://reporoster.com/stars/Rajesh-Royal/Broprint.js)](https://github.com/Rajesh-Royal/Broprint.js/stargazers)
89+
[![Forkers repo roster for @nRajesh-Royal/Broprint.js](https://reporoster.com/forks/Rajesh-Royal/Broprint.js)](https://github.com/Rajesh-Royal/Broprint.js/network/members)
90+
<p align="center"><a href="https://github.com/Rajesh-Royal/Broprint.js"><img src="http://randojs.com/images/barsSmallTransparentBackground.gif" alt="Animated footer bars" width="100%"/></a></p>
91+
<br/>
92+
<p align="center"><a href="Rajesh-Royal/Broprint.js#"><img src="http://randojs.com/images/backToTopButtonTransparentBackground.png" alt="Back to top" height="29"/></a></p>

changelog.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
## [2.0] - 2022-04-22
5+
### Added
6+
- Crypto-js dependency removed
7+
- encryption and hashing algorithms updated.
8+
- brave browser gives unique id also.
9+
10+
## [1.2.0] - 2022-04-22
11+
### Added
12+
- Package renamed as broprint.js
13+
14+
## [1.1.2] - 2022-04-19
15+
### Added
16+
- Deployed to netlify.
17+
- Better documentation added.
18+
19+
## [1.1.1] - 2022-04-06
20+
### Added
21+
- Ts types updated.
22+
- Readme updated for better documentation and with sandbox example
23+
24+
## [1.1.0] - 2022-04-05
25+
### Added
26+
- Typescript support
27+
- crypto-js encryption
28+
29+
## [1.0.1] - 2022-03-03
30+
### Added
31+
- demo added
32+
33+
## [1.0.0] - 2022-03-03
34+
### Initialized
35+
- Version upgrade.
36+
- New types added

docs/README.MD

Whitespace-only changes.

example/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

example/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `npm start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.\
15+
You will also see any lint errors in the console.
16+
17+
### `npm test`
18+
19+
Launches the test runner in the interactive watch mode.\
20+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21+
22+
### `npm run build`
23+
24+
Builds the app for production to the `build` folder.\
25+
It correctly bundles React in production mode and optimizes the build for the best performance.
26+
27+
The build is minified and the filenames include the hashes.\
28+
Your app is ready to be deployed!
29+
30+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31+
32+
### `npm run eject`
33+
34+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35+
36+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37+
38+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39+
40+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41+
42+
## Learn More
43+
44+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45+
46+
To learn React, check out the [React documentation](https://reactjs.org/).

0 commit comments

Comments
 (0)