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

adxp-i18n-tool

v1.0.5

Published

This tool reads all files with the specified extensions under the `target_path` and searches for usages of the `getFormatMessage` function. It performs the following actions:

Readme

Features

This tool reads all files with the specified extensions under the target_path and searches for usages of the getFormatMessage function. It performs the following actions:

getFormatMessage(id: string, defaultMessage?: string, params?: object)
  • If id is empty, a unique id will be generated, and the value specified in defaultMessage will be registered in all message files.

  • If id is specified but defaultMessage is not provided:

    • It is inconvenient to read code when defaultMessage is not specified in getFormatMessage. To alleviate this, if a message corresponding to the id exists in any message file, its value will be inserted as the defaultMessage.
    • If there are multiple message files, the last message file listed will be used as the default source for defaultMessage.
  • All message files should contain the same set of ids. If a specific id exists only in some files, it will be added to the rest as well.

Installation & Usage

Configure your environment with the .env file:

i18n_messages_path=/Users/adxp/dev/ai-platform/frontend/ai-snb/src/app/common/i18n/messages
i18n_messages_files=en.json,ko.json,fr.json
target_path=/Users/adxp/dev/ai-platform/frontend/ai-snb/src
target_extension=tsx,ts

⚠️ Important

🛑 Ensure that all source files to be modified are committed beforehand. Since this tool modifies the source code directly, you must run it in a state where you can safely revert changes.

🛑 모든 소스 코드가 commit 된 상태인지를 먼저 확인하십시오. 이 tool 은 소스 코드를 직접 수정하기 때문에, 변경 사항을 revert 할 수 있는 상태에서 실행되어야만 합니다.

When Modifying the Source Code

Run the following commands to update the i18n language files and automatically add any messages that are not yet saved in the language files. If you have modified a default message in the source code, all language files will be overwritten with the new default message. Therefore, you must manually open each language file and update the translations accordingly.

npm install -g adxp-i18n-tool
adxp-i18n-tool exec --env ./.env

When the i18n Language Files Have Been Modified

If you've modified the i18n language files—for example, to update translations or edit messages—you'll need to synchronize them with the default messages in the source code. If you run the i18n tool without doing so, the language files may be reset to match the defaults. When a key exists in all language files but none of the values match the default message in the source code, the tool assumes that the default message has changed and will overwrite all translations with the new default.

⚠️ To avoid losing your edits, run the tool with the --overwrite-default-message option to explicitly sync the changes.

npm install -g adxp-i18n-tool
adxp-i18n-tool exec --env ./.env --overwrite-default-message