Wondering what’s next for npm?Check out our public roadmap! »

    filecopy

    4.1.0 • Public • Published

    filecopy

    Build Status npm Version JS Standard

    Copy files.

    Installation

    npm install filecopy --save

    Usage

    Copy a Single File

    #!/usr/bin/env/node
    'use strict'
     
    const filecopy = require('filecopy')
     
    filecopy('src/some-text01.txt', 'dest/some-text01-copy.txt', {
      mkdirp: true
    }).then(() => {
      /* ... */
    });
     

    Copy Multiple Files

    #!/usr/bin/env node
    'use strict'
     
    const filecopy = require('filecopy')
     
    // Copy all files in src directory to dir.
    filecopy('src/*.txt', 'dest', {}).then(() => {
      /* ... */
    })
     

    License

    This software is released under the MIT License.

    Keywords

    Install

    npm i filecopy

    DownloadsWeekly Downloads

    2,120

    Version

    4.1.0

    License

    MIT

    Unpacked Size

    13.5 kB

    Total Files

    24

    Last publish

    Collaborators

    • avatar