Comparing version 0.0.2-ALPHA to 0.0.3-ALPHA
{ | ||
"name": "full-icu", | ||
"version": "0.0.2-ALPHA", | ||
"version": "0.0.3-ALPHA", | ||
"description": "install 'full-icu' data for your current node", | ||
@@ -5,0 +5,0 @@ "scripts": { |
//var process = require('process'); | ||
//console.dir(process.env); | ||
var npm = require('npm'); | ||
@@ -76,4 +77,8 @@ var fs = require('fs'); | ||
var cwd = fs.realpathSync('.'); | ||
var relpath = path.join('node_modules',myname); | ||
var isglobal = process.env.npm_config_global === 'true'; | ||
var relpath = isglobal ? cwd : path.join('node_modules',myname); | ||
function advice() { | ||
@@ -90,2 +95,7 @@ if(false /* nodever >= ### */) { | ||
} | ||
console.log(""); | ||
console.log("By the way, if you have full data, running this in node:"); | ||
// 9E8 is 10 days into January, so TimeZone independent | ||
console.log("> new Intl.DateTimeFormat('es',{month:'long'}).format(new Date(9E8));"); | ||
console.log("... will show “enero”. If it shows “January” you don't have full data."); | ||
} | ||
@@ -95,3 +105,3 @@ } | ||
if(fs.existsSync(icudat)) { | ||
console.log('√ ' + icudat + ' Already there ( for Node ' + nodever + ' and small-icu ' + icuver + ')'); | ||
console.log('√ ' + icudat + ' Already there (for Node ' + nodever + ' and small-icu ' + icuver + ')'); | ||
advice(); | ||
@@ -98,0 +108,0 @@ } else { |
@@ -8,2 +8,9 @@ Install full ICU data | ||
or for global install: | ||
npm install -g full-icu | ||
Instructions will be printed out on how to activate this data for your version fo node. | ||
MIRROR | ||
@@ -10,0 +17,0 @@ === |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25834
115
29
3