npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

koishi-plugin-translator-youdaoavailable

v0.2.0

Published

/*中英互译的有道翻译*/中英互译,且多个备用翻译接口。[点我查看使用方法](https://www.npmjs.com/package/koishi-plugin-translator-youdaoavailable)

Downloads

87

Readme

koishi-plugin-translator-youdaoavailable

npm

这是一个集成了中英互译功能的插件,以有道翻译为主。提供了开箱即用的翻译功能。多个备用API,确保翻译的可用性。

安装

通过koishi插件市场安装这个插件: 插件市场搜索 translator-youdaoavailable,按照指引安装即可。

使用方法

执行翻译命令

插件应用后,您可以在聊天机器人或应用程序中使用以下命令进行翻译:

translation-youdao <内容>

<内容> 替换为您想要翻译的文本。

示例

用户与命令的交互示例: 用户: translation-youdao 你好,世界! 机器人: 正在翻译,请稍候... 机器人: 翻译结果:Hello, world!

错误处理

如果主要翻译服务失败,该插件将自动尝试备用服务。 除非全部失效,否则用户在整个过程中不被告知,仅控制台日志会输出相关问题。

更新日志

  • 0.2.0

    • 维护功能性正常
    • 支持i18n本地化
    • 取消提供翻译服务
  • 0.1.2 使用ctx.http,取消axios

  • 0.1.1 package.json内加入service-implements,提供translator服务。

  • 0.1.0 1.优化代码整体结构。2.修复换行bug。 3.不再将使用备用API的提示发给用户,而是遇到错误输出到日志。