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

os-locale

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

os-locale - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

10

index.js

@@ -78,3 +78,11 @@ 'use strict';

if (process.platform === 'win32') {
var stdout = execFileSync('wmic', ['os', 'get', 'locale'], {encoding: 'utf8'});
var stdout;
try {
stdout = execFileSync('wmic', ['os', 'get', 'locale'], {encoding: 'utf8'});
} catch (err) {
cache = 'en_US';
return cache;
}
var lcidCode = parseInt(stdout.replace('Locale', ''), 16);

@@ -81,0 +89,0 @@ cache = lcid.from(lcidCode) || 'en_US';

2

package.json
{
"name": "os-locale",
"version": "1.2.0",
"version": "1.2.1",
"description": "Get the system locale",

@@ -5,0 +5,0 @@ "license": "MIT",

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