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

lcid

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lcid

Mapping between standard locale identifiers and Windows locale identifiers (LCID)

  • 4.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is lcid?

The 'lcid' npm package is used to map between standard locale identifiers and Windows locale identifiers (LCID). This is particularly useful when working with various Windows API that require LCID, or when integrating with systems that use Windows locale settings.

What are lcid's main functionalities?

Mapping from locale to LCID

This feature allows you to convert a standard locale string to its corresponding Windows LCID. Useful for applications that need to interface with Windows APIs expecting locale identifiers in LCID format.

const lcid = require('lcid');

console.log(lcid.from('en_US')); // Outputs: 1033

Mapping from LCID to locale

This feature enables the conversion from a Windows LCID back to a standard locale string. It's beneficial when you receive LCID from Windows systems and need to use standard locale formats in your application.

const lcid = require('lcid');

console.log(lcid.to(1033)); // Outputs: 'en_US'

Other packages similar to lcid

Keywords

FAQs

Package last updated on 04 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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