🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

node-cpr

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-cpr

The cp -r command implementation for node.

Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
25
47.06%
Maintainers
1
Weekly downloads
 
Created
Source

cpr

The cp -r command implementation for node.

Installation

npm install node-cpr

Usage

import { cpr } from 'node-cpr'
// or
import { createRequire } from 'node:module'
const require = createRequire(import.meta.url)
const { cpr } = require('node-cpr')

cpr('example.js', 'dirname')

cpr('source/dir', 'dest/dir')

cpr('example.js', 'dirname/rename.js')

cpr(['example.js', 'src/'], 'dirname')

Command Line Interface

Usage: node-cpr [OPTION]... SOURCE... DIRECTORY
Copy Single File to DEST File.
Copy SOURCE(s) FILE or DIRECTORY to DEST DIRECTORY.
Overwrite if the DEST FILE or DIRECTORY exist.

  -h --help            Usage information
  -v --version         output version information and exit

Keywords

cp

FAQs

Package last updated on 25 Nov 2024

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