https://github.com/tiagodanin/cp-random
Copy random files to a specific folder
https://github.com/tiagodanin/cp-random
bin cli copy cp files nodejs random randomizer
Last synced: 22 days ago
JSON representation
Copy random files to a specific folder
- Host: GitHub
- URL: https://github.com/tiagodanin/cp-random
- Owner: TiagoDanin
- License: mit
- Created: 2019-04-04T12:51:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-23T10:44:39.000Z (11 months ago)
- Last Synced: 2025-04-30T09:09:26.597Z (11 months ago)
- Topics: bin, cli, copy, cp, files, nodejs, random, randomizer
- Language: JavaScript
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CP Random
[](https://npmjs.org/package/cp-random)
[](https://npmjs.org/package/cp-random)
[](https://npmjs.org/package/cp-random)
[](https://travis-ci.org/TiagoDanin/CP-Random)
Copy random files to a specific folder
## Installation
Module available through the
[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
or
[`yarn`](https://yarnpkg.com/en/)
command line tools.
```sh
# NPM
npm install cp-random --global
# Or Using Yarn
yarn global add cp-random
```
## Usage
```sh
# Copy all files - from [dir] to [dir]
cp-random --from [dir] --to [dir]
# Copy [number] files - from [dir] to [dir]
cp-random --from [dir] --to [dir] --max [number]
```
## Tests
To run the test suite, first install the dependencies, then run `test`:
```sh
# NPM
npm test
# Or Using Yarn
yarn test
```
## Dependencies
- [minimist](https://ghub.io/minimist): parse argument options
## Related
- [thanos-nodejs](https://ghub.io/thanos-nodejs): Reduce the file size of your project down to 50%, by randomly deleting half of the files.
## Contributors
Pull requests and stars are always welcome. For bugs and feature requests, please [create an issue](https://github.com/TiagoDanin/CP-Random/issues). [List of all contributors](https://github.com/TiagoDanin/CP-Random/graphs/contributors).
## License
[MIT](LICENSE) © [Tiago Danin](https://TiagoDanin.github.io)