A list of programming language identifiers used by the Codewars API.
https://www.npmjs.com/package/@codewarstools/codewars-languages
npm install @codewarstools/codewars-languagesimport languages from '@codewarstools/codewars-languages';
console.log(languages);
// Output: ['agda', 'bf', 'c', 'cfml', 'clojure', ...]Check whether a language identifier is included in the list:
import languages from '@codewarstools/codewars-languages';
const language = 'javascript';
if (languages.includes(language)) {
console.log(`${language} is included in the list.`);
}This package includes TypeScript declarations (languages.d.ts) for type checking and editor support.
The exported array is typed as readonly string[]. The array is also frozen at runtime using Object.freeze().