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

ciceron

v1.1.1

Published

An npm package to translate in-files comments from auto-detected language to another one using DEEPL© API.

Readme

Ciceron

ciceron is an npm package that translates file comments from an auto-detected language to another language using the DEEPL© API.

Table of Contents

🌟 Features

  • Translate file comments from an auto-detected language to another language.
  • Replace the original files or generate new files.
  • Supports multiple languages.
  • Easy to install. Easy to configure. Easy to use.

📌 Prerequisite

You need a DEEPL API key to use ciceron. If you don't have one yet, go to DEEPL to create a free account (up to 500.000 words / months with the free plan ) !

📦 Installation

We recommend installing ciceron globally:

npm i -g ciceron

If you prefer to install ciceron locally, we recommend adding it to your project dev dependencies:

npm i ciceron --save-dev

Then, add a new script in your package.json:

"scripts": {
  "translate": "ciceron translate"
}

Finally, run the following command in your terminal:

npm run translate <file>

You will then be prompted to select the target language and choose whether to replace the original files or generate a new file.

📖 Usage

🖥️ CLI Command

💾 If ciceron is installed globally, run:

ciceron translate <file>

Example

# drag and drop the file
ciceron translate ./src/example.js

# or write the file name in plain text
ciceron translate example.js

You will then be prompted to select the target language and choose whether to replace the original files or generate a new file.


🌐 If ciceron is neither installed globally nor locally, you still can run:

npx ciceron translate <file>

Example

# drag and drop the file
npx ciceron translate ./src/example.js

# or write the file name in plain text
npx ciceron translate example.js

You will then be prompted to select the target language and choose whether to replace the original files or generate a new file.

⚙️ Configuration

ciceron requires a short configuration.

Make sure to install dotenv locally:

npm i dotenv

Set your DEEPL API key in the .env file at the root of your project:

// myproject/.env
DEEPL_API_KEY=your_deepl_api_key

Note: With DEEPL's free offer, you have access to an API credit of 500,000 words per month.

🈯 Supported Languages

ciceron supports the following languages:

  • English 🇬🇧
  • French 🇫🇷
  • German 🇩🇪
  • Italian 🇮🇹
  • Spanish 🇪🇸
  • Dutch 🇳🇱
  • Portuguese 🇵🇹
  • Japanese 🇯🇵
  • Korean 🇰🇷
  • Chinese (simplified) 🇨🇳
  • Ukrainian 🇺🇦
  • Russian 🇷🇺

🧩 Dependencies

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

✍🏻 Author

Louis-Antonin Lesieur