[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#942452: ITP: node-ignore -- manager and filter for .gitignore rules



Package: wnpp
Severity: wishlist
Owner: Jonas Smedegaard <dr@jones.dk>

* Package name     : node-ignore
  Version          : 5.1.4
  Upstream Author  : Kael Zhang <i@kael.me>
* Url              : https://github.com/kaelzhang/node-ignore
* Licenses         : Expat
  Programming Lang : JavaScript

 "ignore" is a manager, filter and parser
 for the .gitignore spec at <https://git-scm.com/docs/gitignore>,
 implemented in pure JavaScript.
 .
  * Standalone module, much simpler than e.g. "fstream-ignore".
  * Only contains utility methods
    to filter paths according to the specified ignore rules.
  * Never tries to discover ignore rules
    by traversing directories or fetching from git configurations.
  * Doesn't care about sub-modules of git projects.
  * Complies exactly to gitignore documentation
    at <https://git-scm.com/docs/gitignore>:
    - "/*.js" should only match "a.js", not also "abc/a.js".
    - "**/foo" should match "foo" anywhere.
    - Prevents re-including a file excluded in a parent directory.
    - Handles trailing whitespaces:
      - "a " (one space) should not match "a  " (two spaces).
      - "a \ " matches "a  ".
    - All test cases are verified against "git check-ignore".

The package is needed by eslint (already packaged in experimental but 
crippled by the lack of ignore).

I plan to maintain this package in the JavaScript team, keeping 
debianization in following Git repository:

    https://salsa.debian.org/js-team/node-ignore.git

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: