🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

generate-fixtures

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

generate-fixtures NPM version

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

Install globally with npm:

npm 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.

Keywords

fixture

FAQs

Package last updated on 30 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts