Miss any of our Open RFC calls?Watch the recordings here! »

hack-ignore

1.0.0 • Public • Published

Hack ignore

A simple module that reads out the .gitignore file. This was mostly created for learning purposes.

Usage

var gitignore = require("gitignore");

gitignore.read(function(err, data) {
    // where data is an array of all files and directories in your .gitignore
})

gitignore.sort(function(err, directories, files) {
    // directories are the directories inside your .gitignore
    // files are the files inside your .gitignore
})

Known problem

The identification for a file or folder could be better, for example .git is a folder but will be treated as a file. Still working on a way to fix this.

Keywords

Install

npm i hack-ignore

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar