An open API service indexing awesome lists of open source software.

https://github.com/noah227/os-locale-ex


https://github.com/noah227/os-locale-ex

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# os-locale-ex

> A CommonJS version of [os-locale](https://www.npmjs.com/package/os-locale)
>
> **Remind**: If your `node version` >= 16, you'll don't need this anymore,
> just set type="module" in your package.json to enable `esm support`

## Usage

``` js
const {osLocale, osLocaleSync} = require("os-locale-ex")

osLocale().then(_ => {
console.log(_)
})

console.log(osLocaleSync())
```