open-crypto-icons 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -18
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -2,33 +2,77 @@
|
|
|
2
2
|
|
|
3
3
|
Welcome to **Open Crypto Icons**, the most comprehensive open-source repository for cryptocurrency logos and icons. Our goal is to provide developers, designers, and creators with high-quality, up-to-date cryptocurrency icons that can be seamlessly integrated into any project. No more hunting for the right logo format.
|
|
4
4
|
|
|
5
|
+
## Demo & Web App
|
|
6
|
+
Check out our searchable Web App with on-the-fly PNG/JPG conversions:
|
|
7
|
+
👉 **[Open Crypto Icons Web App](https://essamamdani.github.io/open-crypto-icons/)**
|
|
8
|
+
|
|
5
9
|
## Features:
|
|
6
10
|
- **Free to Use:** Fully open-source and free to use in personal and commercial projects.
|
|
7
|
-
- **
|
|
11
|
+
- **Huge Collection:** Over 6,700+ cryptocurrency icons and counting.
|
|
8
12
|
- **Multiple Formats:** Instantly download in SVG, PNG, and JPG formats via our Web App.
|
|
9
|
-
- **
|
|
10
|
-
- **High Availability:**
|
|
13
|
+
- **NPM Support:** Easy to use React components available via NPM.
|
|
14
|
+
- **High Availability:** Assets are served directly from our GitHub Pages CDN ensuring fast delivery.
|
|
11
15
|
|
|
12
|
-
|
|
16
|
+
---
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
1. Go to our [GitHub Pages App URL](https://essamamdani.github.io/open-crypto-icons/)
|
|
16
|
-
2. Search for any coin by Name (e.g. `Bitcoin`) or Symbol (e.g. `BTC`)
|
|
17
|
-
3. Hover over any icon and download it in SVG, PNG, or JPG formats.
|
|
18
|
+
## 🚀 Installation (NPM / React)
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
Since this is hosted on GitHub Pages, you can directly hotlink the SVGs in your HTML, React, or Vue apps:
|
|
20
|
+
We provide a lightweight React component wrapper so you don't have to bundle thousands of SVGs into your app. The component automatically fetches the high-quality vector icons directly from our CDN.
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
**Install the package:**
|
|
23
|
+
```bash
|
|
24
|
+
npm install open-crypto-icons
|
|
25
|
+
# or
|
|
26
|
+
yarn add open-crypto-icons
|
|
27
|
+
# or
|
|
28
|
+
pnpm add open-crypto-icons
|
|
24
29
|
```
|
|
25
30
|
|
|
31
|
+
**Usage in React:**
|
|
26
32
|
```jsx
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
import { CryptoIcon } from 'open-crypto-icons/react';
|
|
34
|
+
|
|
35
|
+
function App() {
|
|
36
|
+
return (
|
|
37
|
+
<div style={{ display: 'flex', gap: '20px' }}>
|
|
38
|
+
{/* Default (Colored) Bitcoin Icon */}
|
|
39
|
+
<CryptoIcon symbol="btc" size={48} />
|
|
40
|
+
|
|
41
|
+
{/* Solid Black Ethereum Icon */}
|
|
42
|
+
<CryptoIcon symbol="eth" variant="black" size={48} />
|
|
43
|
+
|
|
44
|
+
{/* Solid White Solana Icon (good for dark mode) */}
|
|
45
|
+
<CryptoIcon symbol="sol" variant="white" size={48} />
|
|
46
|
+
|
|
47
|
+
{/* Transparent Outline Icon */}
|
|
48
|
+
<CryptoIcon symbol="doge" variant="outline" size={48} />
|
|
49
|
+
</div>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Available Props for `<CryptoIcon />`:**
|
|
55
|
+
- `symbol` (string): The ticker symbol of the coin (e.g., `'btc'`, `'eth'`, `'usdt'`).
|
|
56
|
+
- `variant` (string): Style of the icon. Options are `'colored'` (default), `'black'`, `'white'`, or `'outline'`.
|
|
57
|
+
- `size` (number | string): Width and height of the icon. Defaults to `24`.
|
|
58
|
+
- Extends standard `img` props like `className`, `style`, etc.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 🌐 Usage via CDN (HTML/Vue/Vanilla JS)
|
|
63
|
+
|
|
64
|
+
Since this is hosted on GitHub Pages, you can directly hotlink the SVGs in your HTML or any other framework using our `gh-pages` branch:
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<!-- Colored Bitcoin Icon -->
|
|
68
|
+
<img src="https://essamamdani.github.io/open-crypto-icons/icons/colored/btc.svg" width="48" alt="Bitcoin Logo" />
|
|
69
|
+
|
|
70
|
+
<!-- Black Monochrome Ethereum Icon -->
|
|
71
|
+
<img src="https://essamamdani.github.io/open-crypto-icons/icons/black/eth.svg" width="48" alt="Ethereum Logo" />
|
|
31
72
|
```
|
|
32
73
|
|
|
33
|
-
|
|
34
|
-
You can also
|
|
74
|
+
## JSON Metadata
|
|
75
|
+
You can also fetch the full list of available coins (sorted by Market Cap) natively:
|
|
76
|
+
```bash
|
|
77
|
+
https://essamamdani.github.io/open-crypto-icons/coins.json
|
|
78
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-crypto-icons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -45,7 +45,17 @@
|
|
|
45
45
|
"type": "git",
|
|
46
46
|
"url": "git+https://github.com/essamamdani/open-crypto-icons.git"
|
|
47
47
|
},
|
|
48
|
-
"keywords": [
|
|
48
|
+
"keywords": [
|
|
49
|
+
"crypto",
|
|
50
|
+
"icons",
|
|
51
|
+
"cryptocurrency",
|
|
52
|
+
"svg",
|
|
53
|
+
"react",
|
|
54
|
+
"bitcoin",
|
|
55
|
+
"ethereum",
|
|
56
|
+
"web3",
|
|
57
|
+
"defi"
|
|
58
|
+
],
|
|
49
59
|
"author": "",
|
|
50
60
|
"license": "ISC",
|
|
51
61
|
"bugs": {
|