Ccusage byethrow
Reference the byethrow documentation to understand and use the Result type library for error handling in JavaScript/TypeScript. Access detailed API references, practical usage examples, and best practice guides.
install
source · Clone the upstream repo
git clone https://github.com/ryoppippi/ccusage
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ryoppippi/ccusage "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/byethrow" ~/.claude/skills/ryoppippi-ccusage-byethrow && rm -rf "$T"
manifest:
.claude/skills/byethrow/SKILL.mdsource content
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
listList all available documentation organized by sections.
# List all documentation npx @praha/byethrow-docs list # List documentation with filter query npx @praha/byethrow-docs list --query "your query"
Options:
: Filter documentation by keywords (optional)--query <string>
search
command
searchSearch documentation and get matching results with highlighted snippets.
# 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:
: Search query string (required)query
Options:
: Maximum number of results to return (default: 5)--limit <number>
toc
command
tocDisplay table of contents from a documentation file.
# Display table of contents from a markdown file npx @praha/byethrow-docs toc path/to/document.md
Arguments:
: Path to the documentation file (required)path