Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18nexus-cli

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18nexus-cli - npm Package Compare versions

Comparing version 3.3.1 to 3.4.0

8

bin/index.js

@@ -40,2 +40,7 @@ #!/usr/bin/env node

.option(
'--confirmed',
'Only downloads confirmed translations (Cannot be used with `version`)',
false
)
.option(
'--clean',

@@ -50,3 +55,4 @@ 'Removes and rebuilds destination folder before download',

path: options.path,
clean: options.clean
clean: options.clean,
confirmed: options.confirmed
});

@@ -53,0 +59,0 @@ });

@@ -20,3 +20,3 @@ const fs = require('fs');

if (regex.test(name)) {
fs.rmdirSync(`${path}/${name}`, { recursive: true });
fs.rmSync(`${path}/${name}`, { recursive: true });
}

@@ -65,2 +65,7 @@ });

if (usingVersion && opt.confirmed) {
console.log(colors.red('The --confirmed flag cannot be used with version'));
return process.exit(1);
}
console.log(`Downloading translations to ${path}...`);

@@ -96,2 +101,6 @@

if (opt.confirmed) {
url += '&confirmed=true';
}
const response = await handleFetch(url);

@@ -98,0 +107,0 @@

2

package.json
{
"name": "i18nexus-cli",
"version": "3.3.1",
"version": "3.4.0",
"description": "Command line interface (CLI) for accessing the i18nexus API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,10 +9,11 @@ # i18nexus-cli

- [next-i18next Walkthrough](https://i18nexus.com/tutorials/nextjs/next-i18next)
- [next-intl Walkthrough](https://i18nexus.com/tutorials/nextjs/next-intl)
- [react-i18next Walkthrough](https://i18nexus.com/tutorials/react/react-i18next)
- [react-intl Walkthrough](https://i18nexus.com/tutorials/react/react-intl)
- [next-intl for Next.js App Router Walkthrough](https://i18nexus.com/tutorials/nextjs/next-intl)
- [react-i18next for Next.js App Router Walkthrough](https://i18nexus.com/tutorials/nextjs/react-i18next)
- [next-i18next for Next.js Pages Router Walkthrough](https://i18nexus.com/tutorials/nextjs/next-i18next)
## Who is this CLI meant for?
- Developers who prefer to download and bundle their translation files with their app (especially useful for those who use SSR/SSG and libraries like Next.js).
- Developers who prefer to download and bundle their translation files with their app (especially useful for those who use SSR/SSG frameworks such as Next.js).
- Developers who wish to add, edit, or delete strings in their i18nexus project from the command line.

@@ -93,2 +94,3 @@

| `--ver` or `-v` | `latest` |
| `--confirmed` | `false` |
| `--clean` | `false` |

@@ -107,2 +109,5 @@

`--confirmed`
Downloads only translations that have been confirmed in i18nexus
`--clean`

@@ -109,0 +114,0 @@ Before download, clears your destination folder specified in --path. As a safety precaution, this only deletes folders with names that match a simple language code regex. You should still ensure you are not storing any files in your destination folder that you do not want deleted.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc