{"_id":"locale-code","_rev":"14-f4869b9c322ef2664927ad40b52c4667","name":"locale-code","description":"locale code based on iso-639-1 and iso-3166-1","dist-tags":{"latest":"2.0.2"},"versions":{"0.1.1":{"name":"locale-code","version":"0.1.1","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/meikidd/locale-util.git"},"keywords":["locale","i18n","language"],"scripts":{"build":"babel src --out-dir build"},"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-util/issues"},"homepage":"https://github.com/meikidd/locale-util#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1":"~0.1.0"},"devDependencies":{"babel":"~5.8.12"},"gitHead":"35ebef85c4c2aaf263013d3be9de0e5cff210e16","_id":"locale-code@0.1.1","_shasum":"21165fb726c248d871063d045c2cf8b2f9fc77a3","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"shasum":"21165fb726c248d871063d045c2cf8b2f9fc77a3","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-0.1.1.tgz","integrity":"sha512-X9LchcXxz4sXuiwFmvI9ztZS77MORTHfczNUR5Bl3XlG1iBRZ7TVPbyd6Ywhlo4fNMZBqilChTPZjDhefvy7MQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKxwLDFzf4lx1lzU26Tyil71jjaV5lM9r1igwRpWECIQIgfNDmIw4GIY7o4MlicKMPMTF7wONO7WWdP/vH+QdmrL0="}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"directories":{}},"0.1.2":{"name":"locale-code","version":"0.1.2","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/meikidd/locale-util.git"},"keywords":["locale","i18n","language"],"scripts":{"build":"babel src --out-dir build"},"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-util/issues"},"homepage":"https://github.com/meikidd/locale-util#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1":"~0.1.0"},"devDependencies":{"babel":"~5.8.12"},"gitHead":"0d3d091e7a0443e05aa43e3e56dfddd8de9a6ea9","_id":"locale-code@0.1.2","_shasum":"16b5fcb67834d63abc985dd88127116e64339e0a","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"shasum":"16b5fcb67834d63abc985dd88127116e64339e0a","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-0.1.2.tgz","integrity":"sha512-EyDpWwF2aY4WqGgQOEMQ2mmv5HiowIHo04VYluzOBcv9ff/zsRf7E6nTEL1Th2axbfwd5tgWwdoIWmlQnR42LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPvYcFZKNRYc+V7aU3P3rrSxIB+L837u9IvunzlQz/KAIhAKu88m39ruLyr8Ig/imWA1AMuFtLlzIycYgwPVYKmwJL"}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"directories":{}},"0.1.3":{"name":"locale-code","version":"0.1.3","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/meikidd/locale-util.git"},"keywords":["locale","i18n","language"],"scripts":{"build":"babel src --out-dir build"},"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-util/issues"},"homepage":"https://github.com/meikidd/locale-util#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1":"~0.1.0"},"devDependencies":{"babel":"~5.8.12"},"gitHead":"87eb5f541581561b0a109bba03156864280ff94b","_id":"locale-code@0.1.3","_shasum":"549e9d9987ad77bd5011c960c308d63dc7c6f3c4","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"shasum":"549e9d9987ad77bd5011c960c308d63dc7c6f3c4","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-0.1.3.tgz","integrity":"sha512-ch1fzyOZDGaUWsN4oDGs1yv2MNbDjaDfdGVVE9hlen1yyO9sPP9wWe2G/v2R4BNevctDNS62DuGSUETFZrkkUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGy5lmj7eZj9xYtHwDDteesEugtLbv08qDlcSg/MCWFvAiEAh1XXAVwLipjBii5ItLObzcdS5S4XLjMoaGjlq93TLBc="}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"directories":{}},"1.0.0":{"name":"locale-code","version":"1.0.0","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/meikidd/locale-util.git"},"keywords":["locale","i18n","language"],"scripts":{"build":"babel src --out-dir build","test":"mocha"},"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-util/issues"},"homepage":"https://github.com/meikidd/locale-util#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1":"~1.0.0"},"devDependencies":{"babel":"~5.8.12","mocha":"*"},"gitHead":"41d2912a06134cd2738734d7e9d2121fd6a56085","_id":"locale-code@1.0.0","_shasum":"53cd210417bfa622261ec1394ab6d13403fa33a7","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"shasum":"53cd210417bfa622261ec1394ab6d13403fa33a7","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-1.0.0.tgz","integrity":"sha512-lOKHYlvYq5+dNDT/RtvH1QVXsafC8N9f26xM1G1+i1NARCZIv+ZmE2b0hgt+e0TUp5tBJaqhQA9AHiOdVlOYiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfTwPS/5WHrPfZMAMYjEec70hmqj7vJfgfZuPYp40x5gIhAIrb+l26KzciS6ZetJcN+op+oVSKLVk9wiWlWz7mTgDu"}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"directories":{}},"1.0.1":{"name":"locale-code","version":"1.0.1","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/meikidd/locale-code.git"},"keywords":["locale","i18n","language"],"scripts":{"build":"babel src --out-dir build","test":"mocha"},"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-code/issues"},"homepage":"https://github.com/meikidd/locale-code#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1":"~1.0.0"},"devDependencies":{"babel":"~5.8.12","mocha":"*"},"gitHead":"7f48d2e9a3eaefce1393d86a70cdfc09de890a72","_id":"locale-code@1.0.1","_shasum":"d467cf8cef0e9dde39cb22275ad2a42d010f78e3","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"shasum":"d467cf8cef0e9dde39cb22275ad2a42d010f78e3","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-1.0.1.tgz","integrity":"sha512-TToSEMlCynaf8BOJeubT1dwYGXXqFeKPdH327gy3o4w57Txv9ICgb/1qt2ImenwYwgz5fCHpSb5V3/aq0+9ccQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIEhUy85wfFsVdycrHx2jBOczy+revXiyOUtyDJ1KavVRAh80m6WSc9T84fB5FqT8tsNAZXaddLd2H4p8j8gXx/U4"}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/locale-code-1.0.1.tgz_1461989681171_0.29930798150599003"},"directories":{}},"1.1.0":{"name":"locale-code","version":"1.1.0","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/meikidd/locale-code.git"},"keywords":["locale","i18n","language"],"scripts":{"build":"babel src --out-dir build","test":"mocha"},"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-code/issues"},"homepage":"https://github.com/meikidd/locale-code#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1-zh":"^1.0.1"},"devDependencies":{"babel":"~5.8.12","mocha":"*"},"gitHead":"44a6721aa5e1672ae24dbb43a5631a04992a200e","_id":"locale-code@1.1.0","_shasum":"0e5c9a37df7d24f36fac36066dcc1d438c2499e3","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"shasum":"0e5c9a37df7d24f36fac36066dcc1d438c2499e3","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-1.1.0.tgz","integrity":"sha512-gMXQZnIXtYn7MjdJYLokNsGfSz/1rGpDzpPfMxH07+U5AjLRvdO+PDrIpomUS06sd1oIGVqZUTl8gkIts+XrlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtARpn+FHGBH5owEs5n8DsXyA0h/OhaGxpJ0ClLPx6kAiAL8CrgY7k/cVruKs0WxAOQ9BJGKTbGoDa8Pli5pIay+w=="}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/locale-code-1.1.0.tgz_1462068030888_0.18122204160317779"},"directories":{}},"1.1.1":{"name":"locale-code","version":"1.1.1","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/meikidd/locale-code.git"},"keywords":["locale","i18n","language"],"scripts":{"build":"babel src --out-dir build","test":"mocha"},"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-code/issues"},"homepage":"https://github.com/meikidd/locale-code#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1-zh":"^1.0.1"},"devDependencies":{"babel":"~5.8.12","mocha":"*"},"gitHead":"ced75f6bfa3c98d7b440c83394508c9e9a912d51","_id":"locale-code@1.1.1","_shasum":"dbbfe4e9c2bd3accc7d48ad2f15833f2c733c533","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"shasum":"dbbfe4e9c2bd3accc7d48ad2f15833f2c733c533","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-1.1.1.tgz","integrity":"sha512-4fjbpRHSbPAIwOCrNlL5DEqG1bwkmxgzvdKKenYDzPevUZoHQOstKpZZqEQSgB9D/KAV3zXpeeC99JeHrgGfwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsXmcXKwyx2mtcF1F/oZw6tLUabE080DW1vQgi+3FlnAiEAnhvE61UHFuOT8epsId5GX0Hm9t3yxy1jt4t7y7uK5Qs="}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/locale-code-1.1.1.tgz_1462160195439_0.37191064772196114"},"directories":{}},"2.0.0":{"name":"locale-code","version":"2.0.0","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","module":"src/index.js","scripts":{"build":"webpack","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/meikidd/locale-code.git"},"keywords":["locale","i18n","language"],"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-code/issues"},"homepage":"https://github.com/meikidd/locale-code#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1-zh":"^2.0.3"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","clean-webpack-plugin":"^0.1.17","mocha":"^4.0.1","webpack":"^3.10.0"},"gitHead":"583b22ccc6027b04ee3df1cf93e7aaa4d70063fe","_id":"locale-code@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"integrity":"sha512-WZ3ee+MysgUUvi69x658O2KKoPNoVxP72jEHe/QczPpgPGAzisEuSIZFZGXEkfYuPziNKENFU0qLJD/7XXN4og==","shasum":"811dfc0fe32d85be88279577b0fb812b3925662d","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNezGRAE7/AqoErHs+siXOjrUgNeil+dv2nLIal8oiNwIhAKmwxpVJICykz3cmrvNbo0eeui8OUdFDR8F9VUpAOub0"}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locale-code-2.0.0.tgz_1516244031149_0.6506497883237898"},"directories":{}},"2.0.1":{"name":"locale-code","version":"2.0.1","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","module":"src/index.js","scripts":{"build":"webpack","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/meikidd/locale-code.git"},"keywords":["locale","i18n","language"],"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-code/issues"},"homepage":"https://github.com/meikidd/locale-code#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1-zh":"^2.0.4"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","clean-webpack-plugin":"^0.1.17","mocha":"^4.0.1","webpack":"^3.10.0"},"gitHead":"df34f0ef9282844e229406a93de9b4077fde0ede","_id":"locale-code@2.0.1","_shasum":"7ad291052838da31c29f9102f75e2a37d2411d49","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"shasum":"7ad291052838da31c29f9102f75e2a37d2411d49","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-2.0.1.tgz","integrity":"sha512-UjI5lvPsiF7gFfdnuYW4Q9NHlc+q3GLm1FYVKCny7f44UG5Drs2gK6UebLvvaJpzOO6Qo4Flw8VKvgKRFsgPCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnby9YN1RUIqil4tL+MQDG7Ker8vmQ70G7IDz/1UtA0wIhAK+FbZXOaeObUP+Py0gHLnfV9/tI4d3QlJ6CpH8allKo"}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locale-code-2.0.1.tgz_1516609899682_0.5516927395947278"},"directories":{}},"2.0.2":{"name":"locale-code","version":"2.0.2","description":"locale code based on iso-639-1 and iso-3166-1","main":"build/index.js","module":"src/index.js","scripts":{"build":"webpack","test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/meikidd/locale-code.git"},"keywords":["locale","i18n","language"],"author":{"name":"meikidd","email":"meikidd@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/meikidd/locale-code/issues"},"homepage":"https://github.com/meikidd/locale-code#readme","dependencies":{"iso-3166-1-alpha-2":"~1.0.0","iso-639-1-zh":"^2.0.4"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","clean-webpack-plugin":"^0.1.17","mocha":"^4.0.1","webpack":"^3.10.0"},"gitHead":"277cd1ced754d0bf5738fe35a96d08daecc2eba2","_id":"locale-code@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"meikidd","email":"meikidd@gmail.com"},"dist":{"integrity":"sha512-wNcUMwk6Nlc10pnZZXWtKArAOZHhH8p2vohPEIENg7ImwMrib/CwKSvyV4g9Wm7KjylyHzXnEMz4i/W3w57wlw==","shasum":"660d80c5825d8fe9f3ba4a72de5716833ec7d0ed","tarball":"https://registry.npmjs.org/locale-code/-/locale-code-2.0.2.tgz","fileCount":14,"unpackedSize":325151,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchcuBCRA9TVsSAnZWagAAuakQAJejBY+I28ld14JMfwcM\n9WssZFoUJ/NcCbyyHdKLJ6Gmdt25NCUujL2mHom9YvZKARDjX8bmnIrC40Ux\nQDt+UBkI4+GZ6zT0lvanajPdnVO1bvPxwbLryxz5LxSj+tYpk+lIF3NHW0n0\nlJMCNQRPlmGXSwQ6oiW//lq7aBlYxb4RHdj9oeIIGRYIzwxDSxX9fu2CGW3v\nGCFdOQsij3biPPdgBkJjmHsE3VUVkm0CeU+TqrNotog4DyIPpwVJy8ht5GDC\nTH1661qyOsBgJRUdw35ULsIFA3mkMdk8dahSsYOjWdkoBe25KvtzPQTi/RgS\n4skhzcXhzz4TUYhIXmoWdgTfaEyF5+ndP+xYc4IuTHVkwuuSty9bsdP1xF4T\nb0Nizjs40gDToBfynQwv8+o/C+dYxuXlg9kVCKz/27mj1OGYpCpiXW0I7GL1\nay2J+qGadGeGT9Qnie8AHArfnJZtMd15MPP0RTdjUzeyjI+Y7BzXceo9G+OB\ngVDADH/9MLNtz7RQSPeF3xSNBNHCw5qLQKbooA/bQLs5tcaoF8I2J9LRmt/m\nyN/swFGqbtZE+tu0dzA6JIn1EilNdXLz+ZzmhzSzXBZ57iQD/T4kvLIZpcZ3\nuw1A0x4rSRkh8R7ANGpPQHn8X8OHG418+1Ey0y/j3hBFoNTv6ptB541wgOBr\nMErS\r\n=lYH2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWd1QPyf4XwIAqubZquKfaUgJGwcDKxQgoer3J8EZZzwIgb9uDVzIY4+iw1vfq1NPPXwwl6TMcCF5gXYjWKa85CmI="}]},"maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locale-code_2.0.2_1552272256607_0.7632235580615596"},"_hasShrinkwrap":false}},"readme":"# locale-code\n[![NPM Version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Download Count][download-url]][npm-url]\n\n[travis-image]: https://travis-ci.org/meikidd/locale-code.svg?branch=master\n[travis-url]: https://travis-ci.org/meikidd/locale-code\n[npm-image]: https://img.shields.io/npm/v/locale-code.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/locale-code\n[download-url]: https://img.shields.io/npm/dt/locale-code.svg?style=flat-square\n\nSimple interface for [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes and [ISO-3166-1-alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes.\n\n## Install\n\n```\nnpm install locale-code\n```\n\n\n## Methods\n\n\n### getLanguageCode(code) \n  - @param code {string}\n  - @return {string}\n\nLookup language code from locale code\n\n### getLanguageName(code) \n  - @param code {string}\n  - @return {string}\n\nLookup language english name by code\n\n### getLanguageNativeName(code) \n  - @param code {string}\n  - @return {string}\n\nLookup language native name by code\n\n### validateLanguageCode(code) \n  - @param code {string}\n  - @return {boolean}\n\nCheck whether the given code is in the list of [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)\n\n### getLanguages(codes) \n  - @param codes {array}\n  - @return {array}\n\nGet the array of the language objects by the given codes\n\n\n### getCountryCode(code) \n  - @param code {string}\n  - @return {string}\n\nLookup country code from locale code\n\n### getCountryName(code) \n  - @param code {string}\n  - @return {string}\n\nLookup country name by code\n\n### validateCountryCode(code) \n  - @param code {string}\n  - @return {boolean}\n\nCheck whether the given code is in the list of [ISO-3166-1-alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)\n\n### validate(code) \n  - @param code {string}\n  - @return {boolean}\n\nCheck whether the given code is in the list of [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) and [ISO-3166-1-alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)\n\n\n## Usage\n\n```\nvar  LocaleCode = require('locale-code')\n\nconsole.log(LocaleCode.getLanguageCode('en-US')); // 'en'\n\nconsole.log(LocaleCode.getLanguageName('zh-CN')); // 'Chinese'\n\nconsole.log(LocaleCode.getLanguageNativeName('zh-CN')); // '中文'\n\nconsole.log(LocaleCode.getLanguageZhName('es-ES')); // '西班牙语'\n\nconsole.log(LocaleCode.validateLanguageCode('en-US')); // true\n\nconsole.log(LocaleCode.validateLanguageCode('bb-US')); // false\n\nconsole.log(LocaleCode.getLanguages(['en-US','zh-CN'])); \n// [{code:'en-US', name:'English', nativeName:'English', zhName:'英语'}, {code:'zh-CN', name:'Chinese', nativeName:'中文', zhName:'中文'}]\n\n\nconsole.log(LocaleCode.getCountryCode('en-US')); // 'US'\n\nconsole.log(LocaleCode.getCountryName('en-US')); // 'United States'\n\nconsole.log(LocaleCode.validateCountryCode('en-US')); // true\n\nconsole.log(LocaleCode.validateCountryCode('en-ZZ')); // false\n\nconsole.log(LocaleCode.validate('en-US')); // true\n\nconsole.log(LocaleCode.validate('en_US')); // false\n\nconsole.log(LocaleCode.validate('bb-XX')); // false\n\n```","maintainers":[{"name":"meikidd","email":"meikidd@gmail.com"}],"time":{"modified":"2022-06-19T13:20:08.443Z","created":"2015-08-26T08:40:45.749Z","0.1.1":"2015-08-26T08:40:45.749Z","0.1.2":"2015-08-26T09:37:34.762Z","0.1.3":"2015-08-26T09:39:34.428Z","1.0.0":"2015-09-10T02:18:24.994Z","1.0.1":"2016-04-30T04:14:43.538Z","1.1.0":"2016-05-01T02:00:32.989Z","1.1.1":"2016-05-02T03:36:36.508Z","2.0.0":"2018-01-18T02:53:51.222Z","2.0.1":"2018-01-22T08:31:39.775Z","2.0.2":"2019-03-11T02:44:16.797Z"},"homepage":"https://github.com/meikidd/locale-code#readme","keywords":["locale","i18n","language"],"repository":{"type":"git","url":"git+https://github.com/meikidd/locale-code.git"},"author":{"name":"meikidd","email":"meikidd@gmail.com"},"bugs":{"url":"https://github.com/meikidd/locale-code/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"zeke":true}}