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

i18next-scanner

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-scanner - npm Package Compare versions

Comparing version 2.4.3 to 2.4.4

lib/match-recursive-regexp.js

21

bin/cli.js

@@ -6,5 +6,6 @@ #!/usr/bin/env node

var program = require('commander');
var ensureArray = require('ensure-array');
var sort = require('gulp-sort');
var vfs = require('vinyl-fs');
var scanner = require('../lib');
var vfs = require('vinyl-fs');
var sort = require('gulp-sort');
var pkg = require('../package.json');

@@ -23,4 +24,4 @@

console.log(' $ i18next-scanner --config i18next-scanner.config.js --output /path/to/output \'src/**/*.{js,jsx}\'');
console.log(' $ i18next-scanner --config i18next-scanner.config.js \'src/**/*.{js,jsx}\'');
console.log(' $ i18next-scanner \'/path/to/src/app.js\' \'/path/to/assets/index.html\'');
console.log(' $ i18next-scanner --config i18next-scanner.config.js "src/**/*.{js,jsx}"');
console.log(' $ i18next-scanner "/path/to/src/app.js" "/path/to/assets/index.html"');
console.log('');

@@ -31,4 +32,14 @@ });

var src = [].concat(program.args || []);
var src = ensureArray(program.args)
.map(function(s) {
s = s.trim();
// On Windows, arguments contain spaces must be enclosed with double quotes, not single quotes.
if (s.match(/(^'.*'$|^".*"$)/)) {
// Remove first and last character
s = s.slice(1, -1);
}
return s;
});
if (!program.config || !program.output || src.length === 0) {

@@ -35,0 +46,0 @@ program.help();

{
"name": "i18next-scanner",
"version": "2.4.3",
"version": "2.4.4",
"description": "Scan your code, extract translation keys/values, and merge them into i18n resource files.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/i18next/i18next-scanner",

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