0.5.7 • Published 3 years ago

dfgen v0.5.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

dfgen

dfgen is a NodeJS command line interface that creates dummy files for testing purpose.

Installation

# local
npm install --save-dev dfgen

# global
npm install --global dfgen

Usage

# local
npx dfgen --help

# global
dfgen --help

Generate a blank pdf file

dfgen --type pdf 

Generate a pdf file with custom text

dfgen --type pdf --text-content "This is a text content"

Generate an image with custom text

dfgen --type png --text-content "This is a text inside a png"

dfgen --type jpg --width-height "500/200" --text-content "This is a text inside a 500px * 200px jpg "

Generate a corrupted file

# you can simply generate a file with a wrong extension
dfgen --type jpg --output image.gif

# you can also generate a file with an invalid signature
dfgen --type jpg --corrupt-signature invalid # this will replace the 4 first bytes with 0x00 0x01 0x02 0x03

Generate a file with a specified size

# generate a file of 1.4 mb
dfgen --type jpg --file-size 1400000

# or
dfgen --type jpg --file-size 1.4mb

License

MIT

0.5.7

3 years ago

0.5.4

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.2.3

4 years ago

0.4.0

4 years ago

0.2.2

4 years ago

0.4.2

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago

0.0.55

4 years ago

0.0.5

4 years ago

0.0.45

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago