@cspell/filetypes
Version:
Library to determine file types based upon the file name.
18 lines (11 loc) • 284 B
Markdown
# `@cspell/filetypes`
A library to help determine the type of a file.
## Install
```sh
npm install -S @cspell/filetypes
```
## Usage
```ts
import { findMatchingFileTypes } from '@cspell/filetypes';
console.log(findMatchingFileTypes('code.js')); // outputs: [ 'javascript' ]
```