Skip to content

Commit 6a1d7e1

Browse files
2214962083claude
andcommitted
feat: DevToolkit VS Code Extension v0.1.0
12 essential developer tools right in VS Code: - JSON Formatter/Minifier - Base64 Encoder/Decoder - JWT Decoder - UUID Generator (v4/v7) - URL Encoder/Decoder - Unix Timestamp Converter - Hash Generator (MD5/SHA-1/SHA-256/SHA-512) - Regex Tester (Webview panel) - Color Converter (HEX/RGB/HSL) - Password Generator - Cron Expression Parser - Text Diff Checker Zero dependencies, 31KB bundled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 parents  commit 6a1d7e1

File tree

14,237 files changed

+1585966
-0
lines changed

Some content is hidden

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

14,237 files changed

+1585966
-0
lines changed

.vscodeignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.vscode/**
2+
src/**
3+
node_modules/**
4+
tsconfig.json
5+
esbuild.js
6+
.gitignore
7+
**/*.ts
8+
**/*.map

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
3+
All notable changes to the "DevToolkit" extension will be documented in this file.
4+
5+
## [0.1.0] - 2025-02-12
6+
7+
### Added
8+
- JSON Formatter: format and minify JSON from selection or input
9+
- Base64 Encoder/Decoder: encode and decode Base64 with UTF-8 support
10+
- JWT Decoder: decode JWT tokens, display header/payload/expiration
11+
- UUID Generator: generate UUID v4 (random) and v7 (time-sortable)
12+
- URL Encoder/Decoder: encode and decode URL components
13+
- Unix Timestamp Converter: convert between timestamps and dates
14+
- Hash Generator: compute MD5, SHA-1, SHA-256, SHA-512 hashes
15+
- Regex Tester: interactive webview panel with highlighting and presets
16+
- Color Converter: convert between HEX, RGB, and HSL formats
17+
- Password Generator: generate strong random passwords with presets
18+
- Cron Expression Parser: parse cron syntax with next execution times
19+
- Text Diff Checker: compare texts using VS Code built-in diff
20+
- Status bar button for quick access to all commands
21+
- Right-click context menu for common operations
22+
- Command palette integration with "DevToolkit:" prefix

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) 2025 nicepkg
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: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
# DevToolkit — Developer Utilities for VS Code
2+
3+
12 essential developer tools right in your editor. No browser needed, no external dependencies, zero bloat.
4+
5+
## Features
6+
7+
| Tool | Command | Description |
8+
|------|---------|-------------|
9+
| **JSON Formatter** | `DevToolkit: Format JSON` | Format or minify JSON from selection or input |
10+
| **Base64** | `DevToolkit: Encode/Decode Base64` | Base64 encode and decode with UTF-8 support |
11+
| **JWT Decoder** | `DevToolkit: Decode JWT` | Decode JWT tokens, inspect header, payload, expiration |
12+
| **UUID Generator** | `DevToolkit: Generate UUID v4/v7` | Generate and insert UUID v4 (random) or v7 (time-sortable) |
13+
| **URL Encoder** | `DevToolkit: Encode/Decode URL` | URL-encode and decode text |
14+
| **Timestamp** | `DevToolkit: Convert Timestamp` | Convert Unix timestamps to dates and vice versa |
15+
| **Hash Generator** | `DevToolkit: Generate Hash` | Compute MD5, SHA-1, SHA-256, SHA-512 hashes |
16+
| **Regex Tester** | `DevToolkit: Test Regex` | Interactive regex tester with live highlighting |
17+
| **Color Converter** | `DevToolkit: Convert Color` | Convert between HEX, RGB, and HSL |
18+
| **Password Generator** | `DevToolkit: Generate Password` | Generate secure random passwords |
19+
| **Cron Parser** | `DevToolkit: Parse Cron` | Parse cron expressions, show next execution times |
20+
| **Text Diff** | `DevToolkit: Diff Text` | Compare texts using VS Code built-in diff viewer |
21+
22+
## How to Use
23+
24+
### Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
25+
26+
All tools are accessible via the command palette with the `DevToolkit:` prefix.
27+
28+
### Right-Click Context Menu
29+
30+
Select text in the editor, right-click, and find the **DevToolkit** submenu with common operations:
31+
32+
- Format JSON
33+
- Encode/Decode Base64
34+
- Encode/Decode URL
35+
- Decode JWT
36+
- Generate Hash
37+
38+
### Status Bar
39+
40+
Click the **DevToolkit** button in the status bar to open a quick pick list of all available tools.
41+
42+
### Selection-Aware
43+
44+
Most tools work with selected text:
45+
46+
1. Select text in the editor
47+
2. Run a DevToolkit command
48+
3. The result replaces the selection (for encoding/formatting) or opens in a new panel (for decode/inspect)
49+
50+
If no text is selected, you'll be prompted to enter input manually.
51+
52+
## Tool Details
53+
54+
### JSON Formatter
55+
56+
- **Format JSON**: Parses and pretty-prints JSON with 2-space indentation. Works on selected text (replaces in-place) or from input box.
57+
- **Minify JSON**: Compresses JSON to a single line. Great for API payloads.
58+
59+
### Base64 Encoder/Decoder
60+
61+
- Full UTF-8 support for international characters
62+
- Replaces selected text in-place, or copies to clipboard
63+
64+
### JWT Decoder
65+
66+
- Decodes header and payload from JWT tokens
67+
- Shows timestamp claims in human-readable format
68+
- Indicates if the token is expired
69+
- Opens results in a new editor tab
70+
71+
### UUID Generator
72+
73+
- **UUID v4**: Cryptographically random (uses Node.js `crypto.randomUUID()`)
74+
- **UUID v7**: Time-sortable with embedded timestamp (RFC 9562)
75+
- Inserts directly at cursor position
76+
77+
### URL Encoder/Decoder
78+
79+
- Uses `encodeURIComponent` / `decodeURIComponent`
80+
- Replaces selection or copies to clipboard
81+
82+
### Unix Timestamp Converter
83+
84+
- Auto-detects seconds (10 digits) vs milliseconds (13 digits)
85+
- Shows UTC, ISO 8601, local time, and relative time
86+
- Converts date strings to timestamps
87+
- Quick copy options for different formats
88+
89+
### Hash Generator
90+
91+
- Algorithms: MD5, SHA-1, SHA-256, SHA-512
92+
- Option to compute all algorithms at once
93+
- Uses Node.js `crypto.createHash()` for reliable results
94+
95+
### Regex Tester
96+
97+
- Opens an interactive webview panel
98+
- Real-time matching with syntax highlighting
99+
- Flag toggles: `g`, `i`, `m`, `s`
100+
- Preset patterns: Email, URL, IPv4, Hex Color, Date
101+
- Match details table with index and length
102+
103+
### Color Converter
104+
105+
- Parses HEX (`#1E90FF`), RGB (`rgb(30, 144, 255)`), and HSL (`hsl(210, 100%, 56%)`)
106+
- One-click copy for any format
107+
108+
### Password Generator
109+
110+
- Presets: Strong (20 chars), Medium (16 chars), PIN (8 digits)
111+
- Custom mode: choose length and character types
112+
- Cryptographically secure (Node.js `crypto.randomBytes`)
113+
- Inserts at cursor or copies to clipboard
114+
115+
### Cron Expression Parser
116+
117+
- Parses standard 5-field cron expressions
118+
- Human-readable description
119+
- Shows next 5 execution times
120+
- Field-by-field breakdown
121+
122+
### Text Diff Checker
123+
124+
- Three modes: clipboard vs selection, two inputs, two open files
125+
- Uses VS Code built-in diff editor
126+
- Full syntax highlighting and side-by-side comparison
127+
128+
## Technical Details
129+
130+
- **Zero runtime dependencies** — all tools implemented with native Node.js APIs
131+
- **Bundled with esbuild** — fast load times, small package size
132+
- **TypeScript** — full type safety
133+
- **Minimum VS Code version**: 1.85.0
134+
135+
## Installation
136+
137+
### From VSIX
138+
139+
```bash
140+
code --install-extension devtoolkit-0.1.0.vsix
141+
```
142+
143+
### From Source
144+
145+
```bash
146+
git clone https://github.com/nicepkg/devtoolkit.git
147+
cd devtoolkit
148+
npm install
149+
npm run build
150+
npx @vscode/vsce package --no-dependencies
151+
code --install-extension devtoolkit-0.1.0.vsix
152+
```
153+
154+
## Development
155+
156+
```bash
157+
# Install dev dependencies
158+
npm install
159+
160+
# Build
161+
npm run build
162+
163+
# Watch mode
164+
npm run watch
165+
166+
# Package
167+
npm run package
168+
```
169+
170+
## License
171+
172+
MIT

devtoolkit-0.1.0.vsix

17.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)