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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i hack-ignore

      Weekly Downloads

      0

      Version

      1.0.0

      License

      MIT

      Last publish

      Collaborators

      • jeffreyhoven