# ignore-cmd

> SHELL SCRIPT. Add paths to .gitignore .npmignore from CLI

Latest version **0.0.4** (published 2017-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install ignore-cmd
pnpm add ignore-cmd
yarn add ignore-cmd
bun add ignore-cmd
```

Provides the command `ignore`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-05-17 |
| First published | 2017-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | taitulism@gmail.com |
| Maintainers | taitulism |
| Keywords | gitignore, npmignore, ignore, add to ignore, ignore cmd, ignore cli |

## Links

- npm: https://www.npmjs.com/package/ignore-cmd
- Repository: https://github.com/taitulism/ignore-cmd
- Issues: https://github.com/taitulism/ignore-cmd/issues
- npm.io page: https://npm.io/package/ignore-cmd

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.0.4 (latest) — 2017-05-17
- 0.0.3 — 2017-05-17

## README

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

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/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
-------
```sh
$ npm install -g ignore-cmd
```


Usage
-----
```sh
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:
```sh
$ ignore -g node_modules/
```

<br />

Ignore multiple paths in (b)oth gitignore and npmignore:
```sh
$ ignore -b drafts/ playground/ todo.txt
```

---
_Source: https://npm.io/package/ignore-cmd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
