Need private packages and team management tools?Check out npm Teams »

gitignore-to-dockerignore

1.0.0 • Public • Published

Gitignore → Dockerignore

Generate an equivalent .dockerignore file from an existing .gitignore file.

Installation

npm install --save gitignore-to-dockerignore

Usage

API

const gitignoreToDockerignore = require('gitignore-to-dockerignore')
 
const input = `
/node_modules/
*.log
`
 
console.log(gitignoreToDockerignore(input))
// .git/
// node_modules/
// **/*.log

CLI

# Write a .dockerignore file from .gitignore 
gitignore-to-dockerignore

Install

npm i gitignore-to-dockerignore

DownloadsWeekly Downloads

60

Version

1.0.0

License

MIT

Unpacked Size

5.82 kB

Total Files

6

Last publish

Collaborators

  • avatar