PATH: //opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules/lcid
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 index.js
↓
X
📄 lcid.json
↓
X
📄 license
↓
X
📄 package.json
↓
X
📄 readme.md
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: 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;
SIMPAN PERUBAHAN