validator0x 0.1.0 → 0.1.3

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +10 -43
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Samarth Patel
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.
package/README.md CHANGED
@@ -53,50 +53,17 @@ console.log(chain); // "bitcoin"
53
53
  - Taproot (P2TR): Starts with `bc1p`.
54
54
  - **Polygon**: Same as Ethereum validation rules.
55
55
 
56
- ## Development
56
+ ## Test Coverage
57
57
 
58
- ```bash
59
- npm install
60
- npm test
61
- npm run build
62
- ```
63
-
64
- ## Contributing
65
-
66
- We welcome contributions! Please follow these steps to set up your development environment:
67
-
68
- 1. **Clone the repository**:
69
- ```bash
70
- git clone https://github.com/Samarth208P/validator0x.git
71
- cd validator0x
72
- ```
73
-
74
- 2. **Install dependencies**:
75
- ```bash
76
- npm install
77
- # Note: We use dev-dependencies for testing and building.
78
- # The core package is zero-dependency.
79
- ```
80
-
81
- 3. **Run Tests**:
82
- ```bash
83
- npm test
84
- # Run specific test file
85
- npx jest tests/ethereum.test.ts
86
- ```
87
-
88
- 4. **Lint & Format**:
89
- ```bash
90
- npm run lint
91
- npm run format
92
- ```
93
-
94
- 5. **Build**:
95
- ```bash
96
- npm run build
97
- # Output will be in /dist
98
- ```
58
+ | Category | Statements | Branches | Functions | Lines |
59
+ | :--- | :--- | :--- | :--- | :--- |
60
+ | **All Files** | **88.01%** | **77.23%** | **96.55%** | **89.21%** |
61
+ | Detectors | 100% | 100% | 100% | 100% |
62
+ | Formatters | 100% | 100% | 100% | 100% |
63
+ | Security | 100% | 100% | 100% | 100% |
64
+ | Utils | 94.26% | 80.55% | 100% | 98.03% |
65
+ | Validators | 78.46% | 65.57% | 92.30% | 78.90% |
99
66
 
100
67
  ## License
101
68
 
102
- MIT
69
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "validator0x",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "Multi-chain wallet address validator and formatter for Ethereum, Solana, Bitcoin, and Polygon. Prevents sending crypto to invalid addresses.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",