ISO-639-1 koder
npm install iso-639-1-da[npm-image]: https://img.shields.io/npm/v/iso-639-1.svg?style=flat-square
[npm-url]: https://npmjs.org/package/iso-639-1-da
Simple interface for ISO-639-1 language codes
```
npm install iso-639-1-da
`javascript`
const ISO6391 = require('iso-639-1-da');
console.log(ISO6391.getName('en')); // 'Engelsk'
`javascript`
import ISO6391 from 'iso-639-1';
console.log(ISO6391.getName('en')); // 'Engelsk'
HTML
`html`
Visit global variable ISO6391 in js
`javascript`
console.log(ISO6391.getName('en')); // 'Engelsk'
Lookup language danish name by code
Get array of all language danish names
Lookup language native name by code
Get array of all language native names
Lookup code by danish name or native name
Get array of all codes
Check whether the given code is in the list of ISO-639-1
Get the array of the language objects by the given codes
`
const ISO6391 = require('iso-639-1')
console.log(ISO6391.getName('zh')) // 'Kinesisk'
console.log(ISO6391.getNativeName('zh')) // '中文'
console.log(ISO6391.getAllNames()) // ['Afar','Abkhasisk', ... ,'Zulu']
console.log(ISO6391.getAllNativeNames()) //['Afaraf','аҧсуа бызшәа', ... ,'isiZulu' ]
console.log(ISO6391.getCode('Kinesisk')) // 'zh'
console.log(ISO6391.getCode('中文')) // 'zh'
console.log(ISO6391.getAllCodes()) //['aa','ab',...,'zu']
console.log(ISO6391.validate('en')) // true
console.log(ISO6391.validate('xx')) // false
console.log(ISO6391.getLanguages(['en', 'zh']))
// [{code:'en',name:'Engelsk',nativeName:'English'},{code:'zh',name:'Kinesisk',nativeName:'中文'}]
``