PHP 8.2.30
Preview: index.js Size: 436 B
/opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules/lcid/index.js

'use strict';
var invertKv = require('invert-kv');
var all = require('./lcid.json');
var inverted = invertKv(all);

exports.from = function (lcidCode) {
	if (typeof lcidCode !== 'number') {
		throw new TypeError('Expected a number');
	}

	return inverted[lcidCode];
};

exports.to = function (localeId) {
	if (typeof localeId !== 'string') {
		throw new TypeError('Expected a string');
	}

	return all[localeId];
};

exports.all = all;

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
436 B lrw-r--r-- 2021-09-28 10:29:46
Edit Download
3.19 KB lrw-r--r-- 2021-09-28 10:29:46
Edit Download
1.09 KB lrw-r--r-- 2021-09-28 10:29:46
Edit Download
1.66 KB lrw-r--r-- 2021-09-28 10:29:46
Edit Download
826 B lrw-r--r-- 2021-09-28 10:29:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).