The same tools, in your terminal.
Format JSON, hash strings, encode Base64, decode JWTs, convert YAML — all from a single pipe-friendly CLI. No signup, no telemetry, just stdout.
Run any command instantly — no install required.
npx consolelog-tools <command>- Zero install via npx
- Full stdin/stdout
- Single bundled binary
- No telemetry
consolelog json-format api.json --indent 2consolelog uuid | consolelog hash --algo sha256consolelog jwt-decode $TOKENPick the install path that fits your stack
Need it once? Use npx. Use it daily? Install globally so the binary lives at consolelog.
Once
Run any command instantly via npx — no node_modules, no global state.
npx consolelog-tools <cmd>Globally
Install via your package manager and call consolelog directly.
pnpm add -g consolelog-toolsIn CI
Pin a version in package.json dev-deps, run via pnpm exec.
pnpm add -D consolelog-toolsRequires Node.js ≥ 18. The package bundles every dependency, so installs are fast and the dependency tree stays out of your node_modules.
Every command composes
Each command reads from a file, an inline string, or stdin — and writes to stdout. So they all chain together with each other and anything else in your shell.
Hash a generated UUID
Generate a UUID, then SHA-256 hash it in one shell pipeline.
$consolelog uuid | consolelog hash --algo sha256Pretty-print a curl response
No more grepping minified JSON — pipe straight from curl.
$curl -s https://api.example.com/users | consolelog json-formatYAML → minified JSON
Convert + minify in a single line, write to disk.
$consolelog yaml-to-json config.yaml | consolelog json-minify > config.min.json
196 commands across 20 categories
Open a category to browse, or search by name or task. Each command shows a copy-paste example; add --help for its full options. Every command has a web version too.
196 commands · 20 categories
- Web
consolelog caseConvert text between case styles.
$npx consolelog-tools case 'hello world' --to camel - Web
consolelog loremGenerate Lorem Ipsum placeholder text.
$npx consolelog-tools lorem --type paragraphs --count 3 - Web
consolelog slugConvert text to a URL-safe slug.
$npx consolelog-tools slug 'Hello World! 2026'
- Web
consolelog base64-encode / base64-decodeEncode text as Base64 or decode it back.
$echo -n 'hello' | npx consolelog-tools base64-encode - Web
consolelog html-encode / html-decodeEncode or decode HTML entities (e.g. < ↔ <).
$npx consolelog-tools html-encode '<a href="x">' - Web
consolelog jwt-decodeDecode a JWT (header + payload as JSON).
$npx consolelog-tools jwt-decode <token> - Web
consolelog url-encode / url-decodePercent-encode or decode a URL or string.
$npx consolelog-tools url-encode 'a b&c=1'
- Web
consolelog code-diffUnified diff between two files (or strings).
$npx consolelog-tools code-diff old.js new.js - Web
consolelog css-formatFormat CSS with Prettier.
$npx consolelog-tools css-format styles.css - Web
consolelog css-minifyMinify CSS with csso.
$npx consolelog-tools css-minify styles.css - Web
consolelog css-to-tailwindConvert CSS declarations to Tailwind classes.
$npx consolelog-tools css-to-tailwind 'display:flex;padding:16px' - Web
consolelog csv-to-jsonConvert CSV to JSON (auto-detects the delimiter).
$npx consolelog-tools csv-to-json data.csv - Web
consolelog graphql-formatFormat GraphQL queries & schemas with Prettier.
$npx consolelog-tools graphql-format schema.graphql - Web
consolelog html-formatFormat HTML with Prettier.
$npx consolelog-tools html-format page.html - Web
consolelog html-minifyMinify HTML (raw-text aware).
$npx consolelog-tools html-minify page.html - Web
consolelog html-to-mdConvert HTML to Markdown.
$npx consolelog-tools html-to-md page.html - Web
consolelog js-formatFormat JavaScript with Prettier.
$npx consolelog-tools js-format app.js - Web
consolelog js-minifyMinify JavaScript with terser.
$npx consolelog-tools js-minify app.js - Web
consolelog json-formatPretty-print JSON (file path, string, or stdin).
$npx consolelog-tools json-format data.json - Web
consolelog json-minifyStrip whitespace from JSON.
$npx consolelog-tools json-minify data.json - Web
consolelog json-to-csvConvert a JSON array to CSV.
$npx consolelog-tools json-to-csv rows.json - Web
consolelog json-to-tomlConvert JSON to TOML.
$npx consolelog-tools json-to-toml config.json - Web
consolelog json-to-tsGenerate TypeScript types from a JSON sample.
$npx consolelog-tools json-to-ts api-response.json --root ApiResponse - Web
consolelog json-to-xmlConvert JSON to XML.
$npx consolelog-tools json-to-xml data.json --root catalog - Web
consolelog json-to-yamlConvert JSON to YAML.
$npx consolelog-tools json-to-yaml data.json - Web
consolelog json-validateValidate JSON with line:column errors.
$npx consolelog-tools json-validate data.json - Web
consolelog md-to-htmlRender Markdown to HTML.
$npx consolelog-tools md-to-html README.md - Web
consolelog regex-testTest a regex against text or stdin.
$npx consolelog-tools regex-test '\\d+' 'a1 b2 c3' --flags g - Web
consolelog sql-formatFormat SQL across 7 dialects.
$npx consolelog-tools sql-format query.sql --dialect postgresql - Web
consolelog toml-to-jsonConvert TOML to JSON.
$npx consolelog-tools toml-to-json config.toml - Web
consolelog ts-formatFormat TypeScript with Prettier.
$npx consolelog-tools ts-format src/index.ts - Web
consolelog xml-formatFormat XML.
$npx consolelog-tools xml-format feed.xml - Web
consolelog xml-to-jsonConvert XML to JSON.
$npx consolelog-tools xml-to-json feed.xml --coerce - Web
consolelog xml-validateValidate XML well-formedness.
$npx consolelog-tools xml-validate feed.xml - Web
consolelog yaml-to-jsonConvert YAML to JSON.
$npx consolelog-tools yaml-to-json config.yaml - Web
consolelog yaml-validateValidate YAML with line:column errors.
$npx consolelog-tools yaml-validate config.yaml
- Web
consolelog hashHash text with MD5, SHA-1, SHA-256 or SHA-512.
$echo -n 'hello' | npx consolelog-tools hash --algo sha256 - Web
consolelog hash-compareCompare two hashes (exit 1 if they differ).
$npx consolelog-tools hash-compare 5d41402abc4b2a76b9719d911017c592 5d41402abc4b2a76b9719d911017c592 - Web
consolelog hmacGenerate an HMAC-SHA256/512 (hex or Base64).
$npx consolelog-tools hmac 'payload' --key s3cret --alg sha256 - Web
consolelog nanoidGenerate compact, URL-safe Nano IDs.
$npx consolelog-tools nanoid --length 21 --count 5 - Web
consolelog passwordGenerate secure passwords or a memorable passphrase.
$npx consolelog-tools password --length 24 --count 5 - Web
consolelog pbkdf2Hash or verify a password with PBKDF2-SHA256.
$echo -n 's3cret' | npx consolelog-tools pbkdf2 --iterations 600000 - Web
consolelog random-bytesGenerate cryptographically secure random bytes.
$npx consolelog-tools random-bytes --length 32 --format hex - Web
consolelog uuidGenerate v4 UUIDs.
$npx consolelog-tools uuid
- Web
consolelog colorConvert a color across HEX / RGB / HSL / HSV / CMYK / name.
$npx consolelog-tools color "#3B82F6" - Web
consolelog color-nameFind the exact or nearest CSS color name for a color.
$npx consolelog-tools color-name "#6495ED" - Web
consolelog contrastCheck WCAG contrast between a foreground and background color.
$npx consolelog-tools contrast "#1F2937" "#FFFFFF" - Web
consolelog gradientBuild a CSS gradient from color stops.
$npx consolelog-tools gradient --stops "#3B82F6,#8B5CF6" --format css-bg - Web
consolelog paletteGenerate a harmony palette from a base color.
$npx consolelog-tools palette "#3B82F6" --type analogous --format hex-array - Web
consolelog random-colorGenerate random colors (seeded & reproducible).
$npx consolelog-tools random-color --mode vivid --count 5 --format css
- Web
consolelog base64-to-imageDecode a Base64 string / data URI back into an image file (MIME auto-detected).
$npx consolelog-tools base64-to-image datauri.txt --out logo.png - Web
consolelog image-base64Encode an image file to Base64 (data URI / CSS / HTML / JSX / Markdown / JSON).
$npx consolelog-tools image-base64 logo.png - Web
consolelog image-metadataRead EXIF / GPS / IPTC metadata from an image as JSON.
$npx consolelog-tools image-metadata photo.jpg - Web
consolelog placeholderGenerate an SVG placeholder image (svg / data-uri / html / css / markdown).
$npx consolelog-tools placeholder 600x400 - Web
consolelog svg-optimizeOptimize an SVG with SVGO (svg / data-uri / css / html / react / markdown).
$npx consolelog-tools svg-optimize logo.svg
- Web
consolelog cronDescribe a cron expression and list its next run times.
$npx consolelog-tools cron "0 9 * * 1-5" - Web
consolelog http-statusLook up an HTTP status code by number or search by keyword.
$npx consolelog-tools http-status 404 - Web
consolelog ipConvert/analyze an IPv4, IPv6, integer, hex, or CIDR address to JSON.
$npx consolelog-tools ip 192.168.1.1 - Web
consolelog json-pathQuery a JSON document with JSONPath (file or stdin).
$npx consolelog-tools json-path "$.store.book[*].title" data.json - Web
consolelog mcp-configGenerate MCP server config for Claude, Cursor, VS Code, Windsurf & Zed.
$npx consolelog-tools mcp-config --list - Web
consolelog mimeLook up MIME types by extension, filename, or content type.
$npx consolelog-tools mime png - Web
consolelog timestampConvert a Unix timestamp / date — auto-detects the unit, shows timezones.
$npx consolelog-tools timestamp 1609459200 - Web
consolelog tokensEstimate LLM token count and cost across models (file, string, or stdin).
$npx consolelog-tools tokens 'Summarize this article in 3 bullets.' --model gpt-5.4 - Web
consolelog ua-parseParse a User-Agent string into browser / engine / OS / device as JSON.
$npx consolelog-tools ua-parse "Mozilla/5.0 (Windows NT 10.0; Win64; x64) … Chrome/124.0.0.0" - Web
consolelog url-parseParse a URL into its components (protocol, host, path, params…) as JSON.
$npx consolelog-tools url-parse "https://user:[email protected]:8080/a/b?x=1&y=2#frag"
- Web
consolelog border-radiusGenerate a CSS border-radius (preset, uniform, custom corners, or organic blob) — CSS / SCSS / Tailwind v3 / v4.
$npx consolelog-tools border-radius Pill - Web
consolelog box-shadowGenerate a CSS box-shadow (gallery preset, smooth, or neumorphic) — CSS / SCSS / Tailwind v3 / v4.
$npx consolelog-tools box-shadow "Tailwind lg" - Web
consolelog breakpointsGenerate a responsive breakpoint system as CSS, SCSS, JS, Tailwind v3/v4, JSON, or media queries.
$npx consolelog-tools breakpoints --preset tailwind --target tailwind-v4 - Web
consolelog container-queryGenerate CSS @container queries from a preset or JSON model.
$npx consolelog-tools container-query --list - Web
consolelog css-animationGenerate a CSS keyframe animation (preset + overrides) — CSS / SCSS / Tailwind v4 / Tailwind v3 / Web Animations API.
$npx consolelog-tools css-animation fade-in-up - Web
consolelog css-clipGenerate a CSS clip-path (named shape or custom polygon) — CSS (with -webkit-) / SCSS / Tailwind / JS.
$npx consolelog-tools css-clip Hexagon - Web
consolelog css-convertConvert a CSS length into every unit (px/rem/em/%/vw/cq…), or one with --to, against adjustable contexts.
$npx consolelog-tools css-convert 24px --to rem - Web
consolelog css-easingGenerate a CSS easing (cubic-bezier preset / custom / steps) — value / CSS / SCSS / Tailwind / JS.
$npx consolelog-tools css-easing out-back - Web
consolelog css-filterGenerate a CSS filter / backdrop-filter (preset + overrides) — CSS / SCSS / Tailwind v4 / Tailwind v3 / JS.
$npx consolelog-tools css-filter Vintage - Web
consolelog css-gridGenerate a CSS grid layout (preset or column/row spec) — CSS / grid-template-areas / Tailwind / HTML / JSX.
$npx consolelog-tools css-grid "Holy grail" --format css-areas - Web
consolelog css-grid-templateGenerate a grid-template-areas layout (preset or custom areas) — CSS / SCSS / Tailwind / HTML / JSX / responsive.
$npx consolelog-tools css-grid-template "Holy grail" - Web
consolelog css-specificityCalculate and rank the specificity of CSS selectors (one per line).
$printf '#id .class\ndiv p' | npx consolelog-tools css-specificity - Web
consolelog css-spinnerGenerate a pure-CSS loading spinner (10 styles) — HTML+CSS / CSS / SCSS / React.
$npx consolelog-tools css-spinner ring --color "#6366f1" --thickness 6 - Web
consolelog css-transformGenerate a 2D/3D CSS transform (preset + overrides) — CSS / SCSS / Tailwind v4 / Tailwind v3 / JS.
$npx consolelog-tools css-transform "3D tilt" - Web
consolelog css-triangleGenerate a CSS triangle (8 directions, border trick or clip-path) — CSS / SCSS / Tailwind / JS.
$npx consolelog-tools css-triangle up - Web
consolelog css-vars-scaleGenerate a CSS-variable scale (spacing or type) as :root CSS / SCSS / Tailwind v4 / JS.
$npx consolelog-tools css-vars-scale --type spacing --base 4 --count 8 - Web
consolelog flexboxGenerate a CSS flexbox layout (preset or options) — CSS / SCSS / Tailwind classes / HTML / JSX.
$npx consolelog-tools flexbox Navbar - Web
consolelog media-queryGenerate a media query from a preset (mobile-only, dark-mode, retina, print, and more).
$npx consolelog-tools media-query --preset dark-mode - Web
consolelog tw-configGenerate a Tailwind config as a v3 JS config or a v4 @theme CSS block.
$npx consolelog-tools tw-config --target v3 - Web
consolelog tw-paletteGenerate a full 50-950 Tailwind color scale from a base color (Tailwind v4/v3, CSS, SCSS, JSON).
$npx consolelog-tools tw-palette --color "#10b981" --name emerald --format tailwind-v4 - Web
consolelog tw-pluginScaffold a Tailwind plugin in JavaScript or TypeScript.
$npx consolelog-tools tw-plugin --target js - Web
consolelog tw-sortSort Tailwind classes into the recommended order and remove duplicates.
$echo 'p-4 flex text-center bg-blue-500' | npx consolelog-tools tw-sort - Web
consolelog tw-to-cssConvert Tailwind utility classes to plain CSS (with responsive and state variants).
$echo 'flex p-4 md:flex hover:bg-blue-500' | npx consolelog-tools tw-to-css - Web
consolelog view-transitionGenerate View Transitions CSS (cross-document + startViewTransition JS).
$npx consolelog-tools view-transition --list
- Web
consolelog api-docGenerate API docs from an OpenAPI spec.
$npx consolelog-tools api-doc openapi.json - Web
consolelog api-formatBeautify an API response (raw body or a full HTTP response).
$curl -is https://api.example.com/users | npx consolelog-tools api-format - Web
consolelog api-keyGenerate cryptographically-secure API keys and tokens.
$npx consolelog-tools api-key --prefix sk_live --count 5 - Web
consolelog api-mockGenerate API mocks from a JSON Schema or example.
$echo '{"id":1,"name":"Ada"}' | npx consolelog-tools api-mock --from-example --count 5 - Web
consolelog api-securityPrint the API security checklist (Markdown or text).
$npx consolelog-tools api-security > SECURITY.md - Web
consolelog bearer-tokenGenerate an HS256 JWT bearer token from a JSON payload.
$echo '{"sub":"user_1"}' | npx consolelog-tools bearer-token --secret s3cret --expires 900 - Web
consolelog corsGenerate CORS headers / Nginx / Apache / Express config.
$npx consolelog-tools cors --origin https://app.example.com --format nginx - Web
consolelog curl-to-codeConvert a cURL command to code (8 languages).
$cat req.sh | npx consolelog-tools curl-to-code --lang python - Web
consolelog db-urlBuild database connection URIs (8 engines).
$npx consolelog-tools db-url --type postgresql --host db.example.com --db app --user app_user --password s3cret --ssl - Web
consolelog env-exampleGenerate a .env.example from a .env file (masks secrets).
$cat .env | npx consolelog-tools env-example > .env.example - Web
consolelog graphql-queryBuild a GraphQL query from a JSON spec.
$cat query-spec.json | npx consolelog-tools graphql-query - Web
consolelog graphql-validateValidate a GraphQL SDL schema (exit 1 on errors).
$npx consolelog-tools graphql-validate schema.graphql - Web
consolelog http-headersParse HTTP headers, with an optional security grade.
$curl -is https://example.com | npx consolelog-tools http-headers --security - Web
consolelog mock-dataGenerate mock data from a JSON schema (seeded for reproducibility).
$echo '[{"name":"id","type":"uuid"},{"name":"name","type":"name"}]' | npx consolelog-tools mock-data --count 5 --seed 42 - Web
consolelog openapiParse + summarise an OpenAPI / Swagger spec (JSON or YAML).
$npx consolelog-tools openapi spec.yaml --format md > api.md - Web
consolelog postman-to-curlConvert a Postman request or collection to cURL.
$npx consolelog-tools postman-to-curl collection.json - Web
consolelog query-stringBuild or parse URL query strings.
$npx consolelog-tools query-string --url https://api.example.com --param q=hi --param page=1 - Web
consolelog rate-limitCalculate API rate limits and request cadence.
$npx consolelog-tools rate-limit --requests 5000 --window 3600 - Web
consolelog webhook-validate / webhook-signValidate a webhook payload, or HMAC-sign one with a secret.
$cat payload.json | npx consolelog-tools webhook-validate
- Web
consolelog csv-to-sqlConvert CSV into CREATE TABLE + INSERT statements with type inference, for any SQL dialect.
$npx consolelog-tools csv-to-sql data.csv --table users --dialect postgres - Web
consolelog env-convertConvert a .env file to JSON, YAML, shell, docker, docker-compose, Kubernetes, or a deploy-platform list.
$npx consolelog-tools env-convert .env --target json - Web
consolelog mock-dataGenerate reproducible mock data (seeded) for PostgreSQL/MySQL/SQLite/SQL Server as SQL, CSV, JSON, NDJSON, or TypeScript.
$npx consolelog-tools mock-data --template users --rows 50 --dialect postgres - Web
consolelog schema-diagramTurn a SQL schema into a Mermaid, PlantUML, DBML, ASCII, or JSON diagram.
$npx consolelog-tools schema-diagram schema.sql --format mermaid - Web
consolelog sql-formatFormat or minify a SQL query with configurable keyword casing.
$npx consolelog-tools sql-format query.sql - Web
consolelog sql-to-nosqlConvert a SQL query to MongoDB (shell, Node.js driver, or Mongoose).
$echo 'SELECT * FROM users WHERE age > 21' | npx consolelog-tools sql-to-nosql --target node - Web
consolelog sqli-scanScan SQL or application code for injection-prone patterns and report them by severity.
$npx consolelog-tools sqli-scan handler.js
- Web
consolelog canonicalNormalize a URL to its canonical form (strips tracking params), or bulk-group variants by canonical.
$npx consolelog-tools canonical "https://www.Example.com/Page/?utm_source=x#top" - Web
consolelog ga4-eventBuild a GA4 event snippet (gtag/dataLayer/react/Measurement Protocol) from the recommended-event catalog.
$npx consolelog-tools ga4-event purchase --param transaction_id=T_123 --param value=29.99 --param currency=USD - Web
consolelog hreflangBuild a complete, bidirectional hreflang set from code=url pairs (HTML, sitemap, HTTP header, or Next.js).
$npx consolelog-tools hreflang en-US=https://example.com/ es-ES=https://example.com/es/ --x-default en-US - Web
consolelog llms-txtBuild a spec-compliant llms.txt from a JSON spec, or emit a template.
$npx consolelog-tools llms-txt --list - Web
consolelog og-metaGenerate Open Graph + Twitter Card meta tags for a page (the PNG render is browser-only).
$npx consolelog-tools og-meta --title "How to ship OG images" --image https://example.com/og.png - Web
consolelog schema-markupGenerate JSON-LD structured data for 15 Google-eligible types, with a rich-result eligibility check.
$npx consolelog-tools schema-markup --list - Web
consolelog seo-checklistPrint a page-type SEO checklist (markdown/csv/json) with a weighted readiness score.
$npx consolelog-tools seo-checklist --type blog - Web
consolelog sitemap-priorityTurn a list of URLs (stdin/file) into a scored XML sitemap; auto-classifies each page by type & depth.
$cat urls.txt | npx consolelog-tools sitemap-priority - Web
consolelog utmBuild a UTM campaign URL, or a sources×mediums×creatives matrix exported as CSV/TSV/JSON.
$npx consolelog-tools utm https://example.com/ --source newsletter --medium email --campaign launch
- Web
consolelog feature-detectGenerate browser feature-detection code (@supports + JS guards) for a set of features.
$npx consolelog-tools feature-detect - Web
consolelog file-sizeConvert a file size across decimal & binary units with download-time estimates.
$npx consolelog-tools file-size "1.5 GB" - Web
consolelog ioGenerate IntersectionObserver code for a use case (reveal, lazy-load, infinite-scroll…).
$npx consolelog-tools io --use-case reveal --framework vanilla - Web
consolelog lazyGenerate lazy-loading code (native or IntersectionObserver) for any target & framework.
$npx consolelog-tools lazy --target image --technique native --framework react - Web
consolelog responsive-imagePlan a responsive image — breakpoints + <img srcset>/sizes markup.
$npx consolelog-tools responsive-image --width 2400 --height 1600 --max 800 - Web
consolelog service-workerGenerate a modern service worker — per-route caching, precache, offline fallback, versioning.
$npx consolelog-tools service-worker --cache my-app --ver 2 - Web
consolelog speculation-rulesGenerate a speculationrules script/JSON/header from a preset or model.
$npx consolelog-tools speculation-rules --list - Web
consolelog webpEstimate WebP/AVIF savings for an image and print a <picture> element.
$npx consolelog-tools webp 800KB --format jpeg --quality 80
- Web
consolelog alt-textCompose role-appropriate alt text + <img> markup (decorative, functional, complex…).
$npx consolelog-tools alt-text "Golden retriever on a beach" --role informative - Web
consolelog aria-labelGenerate an accessible name + HTML/JSX and show what a screen reader announces.
$npx consolelog-tools aria-label "Close dialog" --element icon-button - Web
consolelog aria-roleLook up an ARIA role (states, keyboard pattern, implicit HTML) or search roles.
$npx consolelog-tools aria-role button - Web
consolelog focus-orderCompute the tab order of HTML and flag DOM-order vs tab-order mismatches (positive tabindex).
$npx consolelog-tools focus-order page.html - Web
consolelog keyboard-navAnalyze HTML for keyboard-accessibility issues (focusable order, traps, click-only divs).
$npx consolelog-tools keyboard-nav page.html - Web
consolelog owasp-scanScan source code or HTTP response headers for OWASP Top 10 (2021) issues.
$npx consolelog-tools owasp-scan app.js - Web
consolelog semantic-htmlConvert div-soup HTML to semantic landmarks/elements (header/nav/main/footer…).
$npx consolelog-tools semantic-html page.html - Web
consolelog skip-linkGenerate skip-navigation links + the reveal-on-focus CSS and matching targets.
$npx consolelog-tools skip-link - Web
consolelog sr-onlyGenerate visually-hidden screen-reader-only text + CSS (clip / Tailwind / focusable).
$npx consolelog-tools sr-only "Loading results" --live polite - Web
consolelog touch-targetCheck a touch-target size against WCAG 2.5.5/2.5.8, Apple HIG, and Material standards.
$npx consolelog-tools touch-target --width 24 --height 24 - Web
consolelog viewportGenerate a viewport <meta> tag with an accessibility (zoom) audit.
$npx consolelog-tools viewport --preset recommended
- Web
consolelog enum-to-unionConvert a TypeScript enum to a const-object + union (tree-shakeable) or a literal union / values array / mapping.
$cat enums.ts | npx consolelog-tools enum-to-union --mode constObject - Web
consolelog interface-mergeMerge multiple TypeScript interfaces (merged / intersection / extends / deep) with conflict resolution.
$cat interfaces.ts | npx consolelog-tools interface-merge --strategy merged - Web
consolelog jsdoc-mdConvert JS/TS JSDoc comments into Markdown API docs (params table, returns, examples, TOC).
$cat src/api.ts | npx consolelog-tools jsdoc-md --toc > API.md - Web
consolelog json-schema-to-zodConvert JSON Schema to Zod, or --reverse Zod → JSON Schema.
$npx consolelog-tools json-schema-to-zod schema.json --name User --type - Web
consolelog json-to-schemaGenerate a JSON Schema (Draft 2020-12 / draft-07) from a JSON sample with enum & format inference.
$cat sample.json | npx consolelog-tools json-to-schema - Web
consolelog type-assertionConvert TypeScript assertions between as / angle-bracket / satisfies (and flatten double assertions).
$cat code.ts | npx consolelog-tools type-assertion --to as - Web
consolelog type-guardGenerate a runtime type guard (and optional assertion function) from a TypeScript interface.
$cat types.ts | npx consolelog-tools type-guard - Web
consolelog type-narrowGenerate idiomatic narrowing code (typeof/in/instanceof/Array.isArray…) for a union type.
$npx consolelog-tools type-narrow "string | number | null" - Web
consolelog zod-schemaGenerate a smart Zod schema from a JSON sample (array-merge optional/nullable, enum & format inference) + z.infer type.
$cat sample.json | npx consolelog-tools zod-schema --name User > user.schema.ts
- Web
consolelog badgeGenerate a shields.io README badge — Markdown / HTML / reStructuredText / AsciiDoc / URL.
$npx consolelog-tools badge --label build --message passing --color brightgreen - Web
consolelog color-schemeGenerate a colour harmony scheme (with ramps + accessibility) — CSS / Tailwind / SCSS / JSON / SVG.
$npx consolelog-tools color-scheme "#3b82f6" --harmony triadic - Web
consolelog component-nameSuggest semantic React/Vue component names from a plain-language description.
$npx consolelog-tools component-name "a dismissible toast notification" - Web
consolelog design-tokensBuild a full token system (perceptual ramps + light/dark semantic layer) — CSS / Tailwind v4 / SCSS / W3C DTCG / Style Dictionary.
$npx consolelog-tools design-tokens --primary "#3b82f6" --accent "#8b5cf6" - Web
consolelog fluid-typeGenerate a fluid clamp() type scale from a viewport range — CSS / Tailwind v4 / SCSS / JSON.
$npx consolelog-tools fluid-type --min 16 --max 20 --min-vw 360 --max-vw 1280 - Web
consolelog spacing-scaleGenerate a spacing scale (linear/geometric/fibonacci/modular) — CSS / Tailwind v4 / SCSS / JSON.
$npx consolelog-tools spacing-scale --base 4 --type geometric --ratio 1.5 - Web
consolelog storybook-storyGenerate a Storybook CSF3 story (React/Vue/Svelte) for a component.
$npx consolelog-tools storybook-story Button - Web
consolelog theme-switcherGenerate flash-free dark-mode theme-switcher code (provider / CSS / flash script / manifest).
$npx consolelog-tools theme-switcher --framework next - Web
consolelog type-scaleGenerate a modular (optionally fluid) type scale — CSS / Tailwind v4 / SCSS / JSON.
$npx consolelog-tools type-scale --base 16 --ratio 1.25
- Web
consolelog cf-workerGenerate a Cloudflare Worker or wrangler.toml from a preset (API, proxy, redirect, cache, CORS, cron).
$npx consolelog-tools cf-worker --preset hello-api - Web
consolelog env-to-jsonConvert a .env to JSON/YAML/TS/k8s/docker-compose (or JSON back to .env), with secret masking.
$cat .env | npx consolelog-tools env-to-json --target json-nested - Web
consolelog gh-actionsGenerate a GitHub Actions workflow YAML from a preset (Node CI, Pages, npm, Docker, Python).
$npx consolelog-tools gh-actions --preset node-ci > .github/workflows/ci.yml - Web
consolelog heroku-procfileGenerate a Heroku Procfile or app.json from a preset (Node, worker+release, Gunicorn, Rails).
$npx consolelog-tools heroku-procfile --preset node-web - Web
consolelog htaccessGenerate an Apache .htaccess from a preset (WordPress, SPA, force HTTPS+www, caching, maintenance).
$npx consolelog-tools htaccess --preset wordpress - Web
consolelog netlify-configGenerate a netlify.toml from a preset (Next.js, Vite SPA, Hugo, functions, monorepo).
$npx consolelog-tools netlify-config --preset vite-spa - Web
consolelog nginx-configGenerate an nginx.conf server block from a preset (static, SPA, reverse proxy, PHP, load balancer).
$npx consolelog-tools nginx-config --preset spa - Web
consolelog railway-configGenerate a railway.json/toml from a preset (Node web, Dockerfile, worker, cron, static).
$npx consolelog-tools railway-config --preset node-web - Web
consolelog render-configGenerate a render.yaml blueprint from a preset (Node+Postgres, static, worker, cron, Docker).
$npx consolelog-tools render-config --preset node-postgres - Web
consolelog s3-policyGenerate an AWS S3 bucket policy (IAM JSON) from a preset (public site, CloudFront OAC, locked-down…).
$npx consolelog-tools s3-policy --preset public-website - Web
consolelog vercel-configGenerate a vercel.json from a preset (Next.js, Vite SPA, static, API proxy, cron).
$npx consolelog-tools vercel-config --preset nextjs
- Web
consolelog cspGenerate a Content-Security-Policy from a preset as a header, <meta> tag, or platform config.
$npx consolelog-tools csp --preset strict-nonce --target http - Web
consolelog fake-cardsGenerate reproducible Luhn-valid TEST card numbers (seeded) as JSON, NDJSON, CSV, SQL, or TypeScript.
$npx consolelog-tools fake-cards --count 10 --network visa --format csv - Web
consolelog password-checkAnalyze a password: strength score, entropy in bits, and crack-time estimates.
$npx consolelog-tools password-check 'correct horse battery staple' - Web
consolelog secret-scanScan files or stdin for hardcoded API keys and secrets; emit a report, JSON, baseline, or pre-commit hook.
$npx consolelog-tools secret-scan .env - Web
consolelog security-headersGenerate HTTP security headers config for nginx, Apache, Vercel, Next.js, and more, with a live grade.
$npx consolelog-tools security-headers --preset strict --target nginx --grade > headers.conf - Web
consolelog xss-scanScan input for XSS vectors and report each finding by category and severity.
$npx consolelog-tools xss-scan comment.html
- Web
consolelog breakpointsGenerate responsive breakpoint code (media/container queries, SCSS, Tailwind) from a framework preset.
$npx consolelog-tools breakpoints --system tailwind --format css - Web
consolelog pwa-manifestGenerate an installable PWA manifest.json with sensible defaults.
$npx consolelog-tools pwa-manifest --name "My App" --short "App" --theme "#0ea5e9" - Web
consolelog safe-areaGenerate CSS env(safe-area-inset-*) recipes for a chosen device and orientation.
$npx consolelog-tools safe-area --device iphone-16-pro-max --format max-combined - Web
consolelog splash-linksGenerate apple-touch-startup-image <link> tags for iOS splash screens.
$npx consolelog-tools splash-links > splash-links.html
- Web
consolelog easingGenerate a CSS transition (or @keyframes/Tailwind/Framer/WAAPI) from a named easing + duration.
$npx consolelog-tools easing --ease back-out --duration 400 - Web
consolelog progressGenerate a progress bar (linear/circular/stepped/semicircle) as HTML+CSS, CSS, React, or Tailwind.
$npx consolelog-tools progress --shape circular --value 70 - Web
consolelog skeletonGenerate a skeleton loading screen from a layout template (card/list/article/table/...).
$npx consolelog-tools skeleton --template card - Web
consolelog springGenerate spring animation code from physics parameters (Framer, react-spring, or CSS).
$npx consolelog-tools spring --stiffness 200 --damping 15 --format framer
- Web
consolelog app-icon-metaGenerate app-icon boilerplate — web manifest / iOS Contents.json / <head> tags / browserconfig (the icon ZIP is browser-only).
$npx consolelog-tools app-icon-meta --name "My App" --color "#6366f1" - Web
consolelog chrome-manifestGenerate a Chrome extension manifest.json from a preset, or preview the install-warning dialog.
$npx consolelog-tools chrome-manifest --preset content-script - Web
consolelog fake-addressGenerate reproducible fake addresses (seeded, multi-locale) as JSON, CSV, SQL, or TypeScript.
$npx consolelog-tools fake-address --count 20 --locale us --format csv - Web
consolelog fake-usersGenerate reproducible fake user profiles (seeded) as JSON, NDJSON, CSV, SQL, or TypeScript.
$npx consolelog-tools fake-users --count 10 --locale gb --format json - Web
consolelog geo-mockGenerate mock geolocation: navigator override, Playwright/Puppeteer setGeolocation, JSON, or GeoJSON.
$npx consolelog-tools geo-mock --preset "London, UK" --target playwright - Web
consolelog lorem-codeGenerate code-flavored placeholders: identifiers, comments, JSON, SQL, endpoints, regex, snippets.
$npx consolelog-tools lorem-code --kind identifiers --count 12 - Web
consolelog package-jsonGenerate a package.json from a framework preset (node-lib, react-vite, nextjs, express-api, vue, cli-tool).
$npx consolelog-tools package-json --preset nextjs --name my-app - Web
consolelog semverBump a version, inspect its parts, or test it against a range (^, ~, x, hyphen, ||).
$npx consolelog-tools semver 1.2.3 --bump minor - Web
consolelog svg-reactConvert an SVG into a React component (TSX/JSX, currentColor, React Native).
$cat icon.svg | npx consolelog-tools svg-react --name Logo > Logo.tsx - Web
consolelog z-indexGenerate a named z-index scale as CSS variables, SCSS, JS, TS, Tailwind, or JSON.
$npx consolelog-tools z-index --scale hundreds --format css-vars
One predictable input rule, applied everywhere
Every command resolves its input in the same order. No surprises, no per-command flags to remember.
- 1
File path
If the first positional arg points at an existing file.
- 2
Inline string
If the first arg isn't a file, it's used as raw input.
- 3
stdin
Whatever was piped in, if no positional arg was passed.
Errors go to stderr with a non-zero exit code, so shell pipelines surface failures correctly.
Common questions
Install paths, runtime requirements, privacy, and how to get help for any command.
- How do I install the consolelog CLI?
- Either run any command on the fly with `npx consolelog-tools <cmd>`, or install it globally with `pnpm add -g consolelog-tools` (or the npm/yarn equivalent). The package bundles all of its own dependencies, so global installs are fast and stay out of your project node_modules.
- Which Node.js version do I need?
- Node.js 18 or newer. The CLI uses native fetch and crypto.randomUUID(), both of which are stable on Node 18 LTS and above. CI runners on Node 20 and 22 are tested.
- Does the CLI send any data anywhere?
- No. There is no telemetry, no analytics, and no network calls except where a specific command needs them (for example, fetching a remote file you explicitly pointed it at). All transformations — hashing, encoding, JSON formatting, JWT decoding — run locally in your terminal.
- Can I pipe other commands into it?
- Yes — every command reads from stdin if no positional argument is provided, and writes to stdout. So you can chain consolelog commands with each other and with anything else in your shell: `curl -s api/users | consolelog json-format`, or `consolelog uuid | consolelog hash --algo sha256`.
- Is there a tool in the CLI for everything on the website?
- Not yet. The CLI ships a curated subset (currently 16 commands) covering the most pipe-friendly utilities — JSON, encoding, hashing, conversion and text. The full 300+ catalog lives on the website. Each web tool that has a CLI equivalent links to it from its page.
- How do I see help for a specific command?
- Append `--help` to any command, e.g. `consolelog json-format --help`. You'll get a description, the available flags, and example invocations.
Want a tool that's not in the CLI?
The CLI ships a curated subset; the full catalog of 300+ tools lives on the web — searchable with K.
Maintained by Matter Development.

