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 🙏

© 2026 – Pkg Stats / Ryan Hefner

rs-i18n

v0.0.10

Published

fast Deep merge and translation i18n json file ,In the process of international development, automatically merge and translate JSON files in other languages

Readme

Starter

yarn add --dev rs-i18n
rs-i18n -lan zh-CN

Description

1、deep merge to Add other i18n language json file
2、Automatic translation using Baidu translation API
3、debug mode format 
4、In the process of international development, automatically merge and translate JSON files in other languages

Step1

rs-i18n.env file or env-cmd -f ./config/dev.js 

create file rs-i18n.env

    RS_I18N_BAIDU_APP_ID=                    #百度翻译API AppID
    RS_I18N_BAIDU_APP_SECRET=                #百度翻译API 秘钥
    RS_I18N_LOCALES_DIR=./resource/locales   #基础文件夹路径 
    RS_I18N_BASE_LANGUAGE=en-US              #基础语言
    RS_I18N_TARGET_FILE_SUFFIX= '.json'      #文件后缀
    RS_I18N_DEBUG_FORMAT=__{%s}__            #debug模式模板

    RS_I18N_LAN_zh-CN=zh                     #百度API 目标语言参数转换 默认 zh-CH=>zh 可增加配置 RS_I18N_LAN_开头即可                     
   

Step2

    rs-i18n -td -lan zh-CN

recommend

Add system environment variable RS_I18N_BAIDU_APP_ID && RS_I18N_BAIDU_APP_SECRET

help

rs-i18n -e
Usage: rs-i18n [options]
Options:
  -V, --version             output the version number
  -lan, --languages <type>  Target language, delimited
  -t, --translation         auto translation, e.g. zh-CN=>zh
  -d, --debug               debug mode format rs-i18n.env.FORMAT
  -e, --help                read more information

Baidu general translation API

https://api.fanyi.baidu.com