gitignore-to-dockerignore
    TypeScript icon, indicating that this package has built-in type declarations

    2.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

    import gitignoreToDockerignore from '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

    241

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    6.33 kB

    Total Files

    7

    Last publish

    Collaborators

    • linusu