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

ruci

v1.0.1

Published

Ruci: CLI for Angular i18n validation with ngx-translate.

Readme

Ruci: Empowering Enterprise Angular with Robust ngx-translate Assurance

Ruci is a powerful Command Line Interface (CLI) tool meticulously crafted to streamline the internationalization (i18n) validation process for your Angular projects utilizing ngx-translate. Ruci empowers developers to maintain high-quality translation files, ensuring a consistent and error-free user experience across all languages.

Table of Contents

Installation

Using bun:

bun add --dev ruci

Using npm:

npm install --save-dev ruci

Using yarn:

yarn add --dev ruci

After installation, ruci can be accessed via a command in your package.json file or directly in the CLI.

Update your package.json and add a new command:

"scripts": {
    // ...other commands,
    "ruci": "ruci"
}

Now you can run the ruci command directly from the command-line, i.e. bun ruci.

Alternatively you can also access the library directly:

node_modules/.bin/ruci

General Usage

To use ruci, you typically run it from your project's root directory. It will load configuration from ruci.config.json if present, or you can provide options directly via the CLI.

Example:

npx ruci

Options

ruci provides several options to customize its behavior. These options can be set via the command line or configured in ruci.config.json.

--base-language-path

Path to the base language file (e.g., src/assets/i18n/en.json). This file serves as the reference for all checks.

--language-paths <paths...>

Paths to other language files or glob patterns (e.g., src/assets/i18n/es.json, src/assets/i18n/fr.json). Multiple paths can be provided.

--project-files <files...>

Paths to project files or glob patterns where translation keys are used (e.g., src/app/**/*.ts, src/app/**/*.html). Multiple paths can be provided.

--missing-keys

Find missing keys in translation files. Available levels: warn, error, skip.

--unused-keys

Find unused keys in translation files. Available levels: warn, error, skip.

--duplicate-values

Find duplicate values across translation files. Available levels: warn, error, skip.

--verify-project-keys

Verify translation keys used in project files exist in translation files. Available levels: warn, error, skip.

Commands

init

Initializes a ruci.config.json file in the current directory with a default configuration. This command is useful for quickly setting up ruci in a new project.

npx ruci init

Examples

Initializing Configuration

To create a default ruci.config.json file:

npx ruci init

This will create a file similar to this:

{
  "baseLanguagePath": "src/assets/i18n/en.json",
  "languagePaths": [
    "src/assets/i18n/es.json",
    "src/assets/i18n/fr.json"
  ],
  "projectFiles": [
    "src/app/**/*.ts",
    "src/app/**/*.html"
  ],
  "options": {
    "missingKeys": "skip",
    "unusedKeys": "skip",
    "duplicateValues": "skip",
    "verifyProjectKeys": "skip"
  }
}

Running Checks

To run ruci with the configuration defined in ruci.config.json:

npx ruci

To run specific checks via CLI options:

npx ruci \
--base-language-path src/assets/i18n/id.json \
--language-paths src/assets/i18n/en.json src/assets/i18n/it.json \
--project-files "src/app/**/*.ts" "src/app/**/*.html" \
--missing-keys error \
--unused-keys error \
--duplicate-values error \
--verify-project-keys warn