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 🙏

© 2024 – Pkg Stats / Ryan Hefner

copydeck-cli

v1.0.0

Published

Copydeck-CLI is a command line interface that allow you to transform Android, IOS or i18Next ressources files into a more user friendly Csv files. The translation from any type of file to any other type of file. ## Install To install this command line int

Downloads

5

Readme

Copydeck-CLI

Copydeck-CLI is a command line interface that allow you to transform Android, IOS or i18Next ressources files into a more user friendly Csv files. The translation from any type of file to any other type of file.

Install

To install this command line interfaces you will need to run those two command

First of course

npm i copydeck-cli

then

npm link @helsing45/copydeck-cli

Commands

Init

To create your configuration file you will need to run the command

copydeck --init [path]

or

copydeck -i [path]

Where the path is where your config file will be save.

When creating your config file you will need to answers a few question.

1) Reading file type

Determine what type of file you will translate from. You can choose between those 5 types; 'Android','Csv', 'IOS', 'i18Next', 'universal'

2) Reading file path

The path where the reading file are.

3) Filter by

The eval string use to filter what item you want to keep. If you translate from a Csv file you can filter by column name. Let's say in my Csv file there's a column name Target where you can have the string for Android, IOS, Mobile (use by both Android and IOS) and some for the WebConsole. Now i'm building my config file to translate Csv to Android i can filter with:

Target == "Android" || Target == "Mobile" 

if in my Csv file contain mutliple project you can always add a column Project and filter like this:

(Target == "Android" || Target == "Mobile") && (Project == "P1" || Project == "All")

4) Writing file type

Determine what type of file you will translate to. You can choose between those 5 types; 'Android','Csv', 'IOS', 'i18Next', 'universal'

5) Writing file path

The path where the file will be written.

6) Is there a default language

In the case you translating a Csv to Android you want to indicate what language will be name values

6.1) What is the default language

Indicate what the default language is.

Translate

To create your configuration file you will need to run the command

copydeck --translate_path [path]

or

copydeck -t [path]

Where the path is where your config file is saved

If you are at the location of your config file, and the file is named config.json you can also run.

copydeck translate