testfile-gen
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

中文简体

testfile-gen

When there is a need for file uploads, constraints on file size and file type are common requirements. However, quickly generating a file of a specified size can be challenging. This is precisely the problem that testfile-gen addresses.

Feature

  • Quickly generate a file with specified size, filename, and output path.
  • Support KB、MB、GB

Install

npm install -g testfile-gen

Usage

testfile-gen -s 2KB -n myFile.txt -p ./output
testfile-gen -s 5.5MB -n myFile.txt -p ./output
testfile-gen -s 1GB -n myFile.txt -p ./output
testfile-gen --size 2KB --name myFile.txt --path ./output
testfile-gen --size 5.5MB --name myFile.txt --path ./output
testfile-gen --size 1GB --name myFile.txt --path ./output

Readme

Keywords

none

Package Sidebar

Install

npm i testfile-gen

Weekly Downloads

1

Version

0.0.2

License

ISC

Unpacked Size

9.89 kB

Total Files

10

Last publish

Collaborators

  • frankkai