0.1.0 • Published 9 years ago

gitignore-merge v0.1.0

Weekly downloads
4
License
-
Repository
github
Last release
9 years ago

gitignore-merge

Merge multiple .gitignore files.

Sections defined with the same #@ Section name are merged.

Blocks within sections are identified by a leading comment are merged within sections.

Example

var merge = require('gitignore-merge');
merge(A, B, { sort: true });

File A:

#@ Platform Specific
.DS_Store

#@ Node
node_modules

#logs
*.log

# Build
build

File B:

#@ Platform Specific
Thumbs.db

#@ Node
# Coverage directory
coverage

#logs
.logs

Result:

#@ Node
node_modules

# Build
build

# Coverage directory
coverage

# logs
*.log
.logs

#@ Platform Specific
.DS_Store
Thumbs.db