Socket
Socket
Sign inDemoInstall

ignorefile-merge

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ignorefile-merge

Merge .ignore files, including comments


Version published
Weekly downloads
34
increased by142.86%
Maintainers
1
Install size
14.3 kB
Created
Weekly downloads
 

Readme

Source

Package logo

Build Status npm Standard Shared Config

Merge .ignore files, including comments

Install

npm install ignorefile-merge

Usage

import { merge } from 'ignorefile-merge';

const left = `
# dotenv
.env.development.local
.env.production.local

# cache
.cache
`;

const right = `
# dotenv
.env.development.local
.env.production.local
.env.test.local

# Output of 'npm pack'
*.tgz

# cache
.cache
`;

/*
Result "ignore" content will be:
# dotenv
.env.development.local
.env.production.local

# cache
.cache

# Output of 'npm pack'
*.tgz

# cache
.cache

# !ignorefile-merge block-open
# ---------------------------------------------------------------
# This block generated automatically
# @see https://www.npmjs.com/package/ignorefile-merge
# ---------------------------------------------------------------

# dotenv
# .env.development.local
# .env.production.local
.env.test.local

# Output of 'npm pack'
*.tgz

# cache
# .cache

# !ignorefile-merge block-close

*/
const result = merge(left, right);

Examples

standard-shared-config - Easy way to create and share your boilerplate configs. One shared config to rule them all:loop::package:

Keywords

FAQs

Last updated on 13 Feb 2024

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc