Socket
Book a DemoInstallSign in
Socket

ignore-cmd

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ignore-cmd

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

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

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

Keywords

gitignore

FAQs

Package last updated on 17 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.