Détail du package

@cspell/filetypes

streetsidesoftware3.4mMIT9.2.2

Library to determine file types based upon the file name.

cspell, filetypes

readme

@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' ]