Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is an HTTP request testing tool that is compliant with Insomnia configuration format. The program reads Insomnia exported YAML files and enables API testing with their descriptions. Key features include:
The tool allows developers to leverage their existing Insomnia configurations in a CLI environment, maintaining compatibility with advanced features like environment variables, request dependencies, and automated testing workflows.
This project uses Bun as the JavaScript runtime and package manager. Always use Bun commands instead of Node.js, npm, or other alternatives:
bun installbun run index.ts or bun index.tsbun --hot index.tsbun testbun build <file>This is a TypeScript project configured with:
"type": "module" in package.jsonindex.tsWhen writing code, prefer Bun's built-in APIs over external packages:
Bun.serve() for HTTP servers (supports WebSockets, HTTPS, routes)bun:sqlite for SQLite instead of better-sqlite3Bun.redis for Redis instead of ioredisBun.sql for Postgres instead of pgWebSocket instead of ws packageBun.$\command`for shell commands instead ofexeca`.env files - no need for dotenvIf building frontend components, use HTML imports with
Bun.serve(). HTML files can directly import .tsx, .jsx, or .js files, and Bun will handle transpilation and bundling automatically.
// CHANGELOG: [YYYY-MM-DD] - Brief description of changes madebun run typecheck without errorsstrictNullChecks properly - check for null/undefined values before using./src/@types/ - Centralize type definitions for better organization and reusability.js extensions in TypeScript imports - Use clean import paths without file extensions when importing TypeScript files@types directory while class implementations remain in their logical modules/** * Processes user authentication data and returns a JWT token * @param userData - The user credentials object * @param options - Authentication options including expiry * @returns Promise resolving to JWT token string * @throws {AuthenticationError} When credentials are invalid * @example * ```typescript * const token = await authenticateUser( * { email: "[email protected]", password: "secret" }, * { expiresIn: "24h" } * ); * ``` */ async function authenticateUser(userData: UserCredentials, options: AuthOptions): Promise<string> { // Validate input credentials before processing if (!userData.email || !userData.password) { throw new AuthenticationError("Missing required credentials"); } // ... rest of implementation }