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

transly-cli

v1.0.2

Published

A CLI tool for translating files using Google Translate.

Readme

Transly CLI Tool

Transly is a command-line tool designed to translate files in different formats (JSON, CSV, TXT) using Google Translate. It aims to provide developers and users with an easy way to translate data efficiently, with caching support to avoid repeated translations of the same text.

Features

  • Supports multiple file formats: JSON, CSV, TXT.
  • Caches translations to prevent re-translation of the same content, improving speed.
  • Allows users to select both source and target languages.
  • Displays translation progress with a progress bar.

Requirements

  • Node.js version >= 14.0.0
  • Internet connection (for making translation requests)

Installation

To install Transly globally using NPM:

npm install -g transly-cli

Usage

Once installed, you can start using Transly through the command line.

Start Transly

To display the logo and available options, use the following command:

transly start

This will display the Transly logo along with helpful information about how to use the tool.

Translating Files

Transly allows you to translate JSON, CSV, and TXT files to your target language.

Translating a JSON File

transly translate <file_path> -l <target_language>

Example:

transly translate test.json -l fa

This will translate the contents of test.json to Farsi.

Translating a CSV File

transly translate <file_path> -l <target_language>

Example:

transly translate test.csv -l es

This will translate the contents of test.csv to Spanish.

Translating a TXT File

transly translate <file_path> -l <target_language>

Example:

transly translate test.txt -l de

This will translate the contents of test.txt to German.

Additional Options

  • -s, --source <source>: Specify the source language for translation (default is en for English).

Example:

transly translate test.json -l fa -s en

This command will translate test.json from English to Farsi.

Example Files for Testing

You can create the following sample files to test the tool:

JSON Example File (test.json)

{
  "greeting": "Hello",
  "farewell": "Goodbye",
  "question": "How are you?",
  "statement": "This is a test."
}

CSV Example File (test.csv)

message
Hello
Goodbye
How are you?
This is a test.

TXT Example File (test.txt)

Hello
Goodbye
How are you?
This is a test.

Extended Example Files

These files contain 50 entries each for more extensive testing:

  • long_test.json: Contains 50 key-value pairs.
  • long_test.csv: Contains 50 rows of data.
  • long_test.txt: Contains 50 lines of text.

License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for more details.

NPM Package

Website and Social Media

Future Plans

  • Web Version: Plan to create a web version for online use with subscription-based advanced features.
  • API Integration: Allow integration with other services using an API.

Published on NPM

Transly is now available on NPM for installation and use globally.


For any questions or feedback, feel free to reach out or open an issue on the GitHub repository!

Happy translating! 🚀