What is COLAGE?
Converted multi language meta information CO
untriesLA
nguagesGE
nres.
Installation
npm i colage
Usage
Import the library in your code:
const colage = ;
Convert country names (string) to ISO 3166-1 (array)
let iso_3166_1 = colage;console; //=> [ 'RU', 'DE', 'CN' ]
Convert country ISO 3166-1 (array) to names (array)
let en_countries = colage;console; //=> [ 'Russia', 'Germany', 'China' ]
Convert language names (string) to ISO 639-1 (array)
let iso_639_1 = colage;console; //=> [ 'ru', 'de', 'zh' ]
Convert language ISO 639-1 (array) to names (array)
let en_languages = colage;console; //=> [ 'Russian', 'German', 'Chinese' ]
Convert genre names (string) to codes (array)
let codes = colage;console; //=> [ '8', '21', '1' ]
Convert genre codes (array) to names (array)
let en_genres = colage;console; //=> [ 'comedy', 'musical', 'action' ]
Convert country ISO 3166-1 (string) to languages ISO 639-1 (array)
let iso_639_1 = colage; // Switzerlandconsole; //=> [ 'de', 'fr', 'it', 'rm' ]
Convert job (string) to department (string)
let department = colage;console; //=> Writing
Running tests
npm test