New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sb-copy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sb-copy

Smooth recursive copies in Node.js

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Copy

Copy is a node module that allows for smooth recursive copies in Node.js, it provides some shiny options to simplfy your packages.

Installation

npm install -g sb-copy

API

export type Options = {
  filter?: ((source: string, destination: string) => boolean),
  dotFiles?: boolean,
  overwrite?: boolean,
  deleteExtra?: boolean,
  failIfExists?: boolean,
  tickCallback?: ((source: string, destination: string) => void)
}
export default function copy(source: string, destination: string [, options: Options])

Usage

import copy from 'sb-copy'

copy('./lib', './lib2', {
  failIfExists: false,
}).then(function() {
  console.log('all files moved')
}, function(error) {
  console.log('files not moved', error)
})

License

This Project is licensed under the terms of MIT License, see the LICENSE file for more info.

Keywords

fs

FAQs

Package last updated on 29 Jun 2016

Did you know?

Socket

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