feat: add 5 new developer tools (cURL to Code, JSON to Types, HTML to Markdown, CSS/JS Prettify & Minify, Byte Unit Converter) - #1811
Open
stevenlee87 wants to merge 19 commits into
Open
Conversation
Use single-space matching ` ?` instead of `\s*` to avoid super-linear backtracking. Safe because preceding step already collapses all whitespace to single spaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change `\/\/.*$/gm` to `\/\/[^\n]*/g` to avoid backtracking with `.*` and `$` anchor in multiline mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The @unhead/vue@0.5.1 package resolves @vueuse/shared@14 which removed the resolveUnref export. Alias @vueuse/shared to the hoisted v10 version that still exports it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The lockfile was out of sync with package.json after adding curlconverter, turndown, and js-beautify, causing CI install to fail. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
Hi @stevenlee87 if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools). And my fork has these tools too (but not complete css/js tool) |
- Use String#replaceAll() over String#replace() for plain string patterns - Add scope="col" to <th> tags for accessibility - Prefer globalThis over window Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
zhaomo08
added a commit
to zhaomo08/it-tools
that referenced
this pull request
Aug 23, 2026
Ports cURL to Code, JSON to TypeScript/Go, HTML to Markdown, CSS/JS Prettify & Minify, Byte Unit Converter, Date Calculator, DNS Query and SSL Certificate Parser from CorentinTh/it-tools#1811 by @stevenlee87, unmerged upstream since 2026-06. Only the tools and what they need came across. Left behind: the Cloudflare Worker and wrangler config, the service worker reload patch and its workbox settings, and the .playwright-mcp debug files the PR carried along. Three things the port needed: - optimizeDeps target esnext, because curlconverter loads its tree-sitter wasm with a top-level await that es2020 cannot parse. - A pnpm override pinning @vueuse/shared to 12.0.0. Installing the new dependencies re-resolved it to 14.4.0, which dropped resolveUnref and broke @unhead/vue. - n-code wrapped in n-config-provider :hljs, the way TextareaCopyable already does it, which clears a console error on the SSL parser page. Adds tests for the SSL certificate parser against a generated self-signed certificate; the PR shipped none. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Add 5 frequently requested developer tools:
/curl-to-code) — Convert cURL commands to code in 8 languages (Python, JavaScript, Node.js, Go, PHP, Java, C#, Rust). Usescurlconverterlibrary./json-to-types) — Generate TypeScript interfaces or Go structs from JSON samples. Custom recursive converter with support for nested objects, arrays, andunion types.
/html-to-markdown) — Convert HTML to Markdown usingturndown. Inverse of the existing Markdown to HTML tool./css-js-prettify-minify) — Format or compress CSS and JavaScript code. Usesjs-beautifyfor prettifying with configurable indent size./byte-unit-converter) — Convert between data size units in both Decimal (SI, base 1000: B/KB/MB/GB/TB/PB) and Binary (IEC, base 1024: B/KiB/MiB/GiB/TiB/PiB)systems side by side.
Changes
src/tools/src/tools/index.ts(Converter, Development, Measurement categories)locales/TextareaCopyable.vuewith highlight.js support for TypeScript, JavaScript, Python, Go, and CSSpublic/forcurlconverterbrowser support@vueuse/sharedto fix pre-existing build compatibility issueNew dependencies
curlconverter— cURL command parsingturndown/@types/turndown— HTML to Markdown conversionjs-beautify/@types/js-beautify— CSS/JS code formattingScreenshots
(Tools are live at the deployed instance for review)
Access addresses of 5 new tools:
my it-tools
https://it-tools.88586688.xyz/