npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

copy-progress

v0.7.0

Published

Copies files from a source directory or a glob pattern to another folder and provides progress updates on command line or with progress events. Can be run as cli or with an api.

Downloads

18

Readme

copy-progress

CLI Usage

Installation

npm install -g copy-progress

Npm 6

If you are using npm version 6 you will also have to install a peer dependency:

npm install -g rxjs@6

It is recommend to update to Npm 7:

npm install -g npm@7

Usage

copy-progress -o mySourceFolder -o myDestinationFolder

Copy Example

Glob

Glob patterns can be used to filter files within the source directory:

copy-progress -o mySourceFolder -o myDestinationFolder -g /**/package.json

ETA

ETA can be displayed with -e or --eta. This is best used for copying larger files:

copy-progress -o mySourceFolder -o myDestinationFolder -e

Bars

By default a file count and a bytes progress bar can be displayed. This can be changed with the --bar or -b argument using either files or bytes:

copy-progress -o mySourceFolder -o myDestinationFolder -b files

Copy Example

copy-progress -o mySourceFolder -o myDestinationFolder -b bytes

Copy Example

Options

| Argument | Alias | Type | Description | |-|-|-|-| | sourceDir | s | string | The source path to copy from. | | outDir | o | string | folder to copy to. | | force | f | boolean | Will overwrite any existing files. | | glob | g | string | glob pattern to copy. The glob pattern is applied within the source directory. For example: 'myFolder/**/*.js' | | concurrentCopy | | number | number of concurrent copy operations to perform. Defaults to 1 | | eta | e | boolean | shows ETA of copy completion. For a lot of small files can be very inaccurate | | chunk | c | boolean | Copies the files in chunks using a readFileStream and a writeFileStream. 'highWaterMark' determines chunk size | | speed | | boolean | shows both overall speed for all files and individual file speed (if chunk is specified) | | highWaterMark | w | '1kB' | '4MB' | '1GB' | Highwatermark used for chunk size when copy method is 'chunk'. Defaults to '1048576'. | | bar | b | 'bytes' | 'files' | Shows either file count progress bar or bytes progress bar. If omitted both bars show | | help | h | boolean | shows this help guide |

Markdown Generated by ts-command-line-args