$ npm install @cspell/filetypes
@cspell/filetypesA library to help determine the type of a file.
npm install -S @cspell/filetypes
import { findMatchingFileTypes } from '@cspell/filetypes';
console.log(findMatchingFileTypes('code.js')); // outputs: [ 'javascript' ]
© 2010 - cnpmjs.org x YWFE | Home | YWFE