random-file-generator

0.1.3 • Public • Published

Description

A tool for quickly generating random binary files

Install

npm install -g random-file-generator

Example

Generate a 200MB random binary file named "200MB" in "D:\temp" folder.

$ rand-gen -d D:\temp -f 200MB -s 1024000 -n 200
Usage: rand-gen -d [num] -f [num] -s [num] -n [num]
 
Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
  -d         Output directory. Create if it doesn't exist             [required]
  -f         Output file name                                         [required]
  -s         Size of every chunk in bytes                             [required]
  -n         How many chunks in file                                  [required]
 
generating [====================] 135360212/bps 100% 0.0s
[Target File] D:temp\200MB
[MD5]: ukVfpRVN1MSyNh8bxgdNYA==

Package Sidebar

Install

npm i random-file-generator

Weekly Downloads

33

Version

0.1.3

License

MIT

Unpacked Size

17.9 kB

Total Files

16

Last publish

Collaborators

  • xiaonli