首页/ AI 技能 / @skilllib/skill-2117939930272413817
Skill站外收录 @skilllib/skill-2117939930272413817

byethrow

提供对 byethrow Result 类型库的文档检索与导航能力,支持按关键词浏览全部文档、全文搜索匹配内容并高亮片段、以及解析指定 Markdown 文件的目录结构,帮助开发者快速掌握错误处理的最佳实践和 API 用法。

0.0 (0) 21 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

## About byethrow `@praha/byethrow` is a lightweight, tree-shakable Result type library for handling fallible operations in JavaScript and TypeScript. It provides a simple, consistent API for managing errors and results without throwing exceptions. For detailed API references and usage examples, refer to the documentation in `node_modules/@praha/byethrow-docs/docs/**/*.md`. ### Documentation CLI The byethrow documentation CLI provides commands to browse, search, and navigate documentation directly from your terminal. #### `list` command List all available documentation organized by sections. ```bash # List all documentation npx @praha/byethrow-docs list # List documentation with filter query npx @praha/byethrow-docs list --query "your query" ``` **Options:** - `--query <string>`: Filter documentation by keywords (optional) #### `search` command Search documentation and get matching results with highlighted snippets. ```bash # Search documentation npx @praha/byethrow-docs search "your query" # Limit number of results (default: 5) npx @praha/byethrow-docs search "your query" --limit 10 ``` **Arguments:** - `query`: Search query string (required) **Options:** - `--limit <number>`: Maximum number of results to return (default: 5) #### `toc` command Display table of contents from a documentation file. ```bash # Display table of contents from a markdown file npx @praha/byethrow-docs toc path/to/document.md ``` **Arguments:** - `path`: Path to the documentation file (required)

评论 0

还没有评论,来抢沙发。