
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@amritk/generate-markdown
Advanced tools
Generate markdown documentation from JSON Schemas.
@amritk/generate-markdown renders a single configuration reference table from a config.schema.json file and writes the result to README.md. It exists so the documentation for a CLI's flags can be regenerated from the schema itself, keeping the two in sync.
It picks up two non-standard keywords from each property to produce richer output:
x-cli-flag — the matching CLI flag (e.g. --schema <path>)x-icon — an emoji shown in the leading column of the tablenpm install @amritk/generate-markdown
# or
pnpm add @amritk/generate-markdown
# or
yarn add @amritk/generate-markdown
# or
bun add @amritk/generate-markdown
import { generateMarkdown } from '@amritk/generate-markdown'
await generateMarkdown()
// Reads ./config.schema.json from process.cwd()
// Writes ./README.md
The generator currently expects:
config.schema.json — the source schema, located relative to the current working directorydescription, default, x-cli-flag, and x-iconThe output is a single Markdown table with the columns: icon, property, CLI flag, type, required, default, description.
generateMarkdown(): Promise<void>No arguments. Reads from ${cwd}/config.schema.json and writes to ${cwd}/README.md.
@amritk/mjst — uses this package to keep its README's flag table in sync with config.schema.json@amritk/generate-parsers — sibling generator for TypeScript parsers and types@amritk/generate-validators — sibling generator for predicate validatorsFAQs
Generate markdown documentation from JSON Schemas.
We found that @amritk/generate-markdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.