file-ignore-parser
Parse ignore files (.gitignore and .npmignore)
Requirements
- Node.js v10 or higher
Getting Started
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i file-ignore-parser# or $ yarn add file-ignore-parser
Usage example
const parser = ; ;
If you want an Array you can convert the Set with Array.from()
API
parser(location: string): Promise< Set< string > >
Parse a given file and return a Set of unique string.
License
MIT