* 主函数
()
| 338 | * 主函数 |
| 339 | */ |
| 340 | async 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 | // 如果直接运行此文件,则执行主函数 |
| 356 | if (import.meta.url === `file://${process.argv[1]}`) { |
no test coverage detected