ignore-cmd

0.0.4 • Public • Published

PROJECT STATUS: Works. Linux only. API Could change.
CURRENT VERSION: 0.0.4
FOLLOWS SEMVER: Not yet.
DEFAULT BRANCH: develop

License: MIT

ignore-cmd

SHELL SCRIPT

Add paths to .gitignore .npmignore from CLI.
Creates the ignore file if not exists (e.g. creates .gitignore).
Currently only adds items.

Install

$ npm install -g ignore-cmd

Usage

Usage:    ignore <flag> <path> [...paths]
 
    flag      -g  add to .gitignore
              -n  add to .npmignore
              -b  add to both
 
    path       The path you want to ignore (e.g. /node_modules/)
 
    paths      Ignore multiple paths

Examples

Ignore node_modules/ in (g)it:

$ ignore -g node_modules/

Ignore multiple paths in (b)oth gitignore and npmignore:

$ ignore -b drafts/ playground/ todo.txt

Package Sidebar

Install

npm i ignore-cmd

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • taitulism