MCPcopy Create free account
hub / github.com/echoVic/blade-code / main

Function main

examples/tools-example.ts:340–353  ·  view source on GitHub ↗

* 主函数

()

Source from the content-addressed store, hash-verified

338 * 主函数
339 */
340async function main() {
341 try {
342 await basicExample();
343 await textProcessingExample();
344 await utilityToolsExample();
345 await networkToolsExample();
346 await customToolExample();
347 await statsExample();
348
349 console.log('✅ 所有示例执行完成!');
350 } catch (error) {
351 console.error('❌ 示例执行失败:', error);
352 }
353}
354
355// 如果直接运行此文件,则执行主函数
356if (import.meta.url === `file://${process.argv[1]}`) {

Callers 1

tools-example.tsFile · 0.70

Calls 8

basicExampleFunction · 0.85
textProcessingExampleFunction · 0.85
utilityToolsExampleFunction · 0.85
networkToolsExampleFunction · 0.85
customToolExampleFunction · 0.85
statsExampleFunction · 0.85
logMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected