How to use the iso-639-1.getAllNames function in iso-639-1

To help you get started, we’ve selected a few iso-639-1 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Coding-Coach / find-a-mentor / scripts / create-user.js View on Github external
source: async (answers, input) => {
    input = input || '';
    var data = ISO6391.getAllNames();
    var results = data.filter(language =>
      language.toLowerCase().startsWith(input.toLowerCase())
    );
    return results;
  },
};