|
|
hai 6 meses | |
|---|---|---|
| .. | ||
| README.md | hai 6 meses | |
| index.ts | hai 6 meses | |
This is a template for creating new tools in the modular structure.
Copy this template directory:
cp -r template/ your-tool-name/
Edit index.ts:
exampleFunction with your tool's logicAdd to main index:
/tool/index.ts:
typescript
export { yourTool, yourFunction } from "./your-tool-name"
Test your tool:
bun -e "import('./your-tool-name/index.ts').then(m => console.log('Exports:', Object.keys(m)))"
your-tool-name/
└── index.ts # All tool functionality
Keep it simple - one file per tool with all functionality included.