REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.06 KB
Close
/proc/thread-self/root/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules/os-locale/readme.md
Text
Base64
# os-locale [](https://travis-ci.org/sindresorhus/os-locale) > Get the system [locale](https://en.wikipedia.org/wiki/Locale_(computer_software)) Useful for localizing your module or app. POSIX systems: The returned locale refers to the [`LC_MESSAGE`](http://www.gnu.org/software/libc/manual/html_node/Locale-Categories.html#Locale-Categories) category, suitable for selecting the language used in the user interface for message translation. ## Install ``` $ npm install --save os-locale ``` ## Usage ```js const osLocale = require('os-locale'); osLocale().then(locale => { console.log(locale); //=> 'en_US' }); ``` ## API ### osLocale([options]) Returns a `Promise` for the locale. ### osLocale.sync([options]) Returns the locale. #### options Type: `Object` ##### spawn Type: `boolean`<br> Default: `true` Set to `false` to avoid spawning subprocesses and instead only resolve the locale from environment variables. ## License MIT © [Sindre Sorhus](https://sindresorhus.com)
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
2.25 KB
lrw-r--r--
2021-09-28 10:29:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
license
1.09 KB
lrw-r--r--
2021-09-28 10:29:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.70 KB
lrw-r--r--
2021-09-28 10:29:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.md
1.06 KB
lrw-r--r--
2021-09-28 10:29:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).