generate-fixtures
Command line tool for easily generating test fixtures. Specify the number of files to create and the destination directory to write them to, and files and directories will be randomly generated in the specified destination.
Install
npm:
Install globally withnpm i -g generate-fixtures
Run tests
npm test
CLI usage
Create fixtures
Specify the destination directory and the number (in any order) of fixtures to create:
Example
fixtures temp 10
This will generate 10 files and folders at random depths in the ./temp
directory.
You can also use -d
or --dest
to specify a directory, and -n
or --number
to specify the number.
Delete fixtures
Specify the directory to delete with --rm
, along with --force
:
Example
fixtures --rm temp --force
options
options.ext
The file extension to use on generated fixtures. Default is .js
.
Example
fixtures 50 foo --ext .txt
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 30, 2014.