file-ignore-parser

2.0.0 • Public • Published

file-ignore-parser

version Maintenance MIT

Parse ignore files (.gitignore and .npmignore)

Requirements

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 = require("file-ignore-parser");
 
parser(".gitignore").then(console.log).catch(console.error);

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.050latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.050
1.0.01

Package Sidebar

Install

npm i file-ignore-parser

Weekly Downloads

51

Version

2.0.0

License

MIT

Unpacked Size

4.5 kB

Total Files

4

Last publish

Collaborators

  • fraxken