@cspell/filetypes
A library to help determine the type of a file.
Install
npm install -S @cspell/filetypes
Usage
import { findMatchingFileTypes } from '@cspell/filetypes';
console.log(findMatchingFileTypes('code.js')); // outputs: [ 'javascript' ]