@muffin-dev/pick-random-file
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

Muffin Dev for Node - Pick Random File

This utility picks a random file in a directory, and displays the path to that picked file.

Installation

Installit using npm by running the following command:

npm i -g @muffin-dev/pick-random-file

Usage

Once installed, run pick-random-file (or its shortcut rndfile). By default, it uses the current directory (equivalent to type ./).

You can also write file extensions to filter files by type.

Examples:

pick-random-file
pick-random-file /path/to/directory
pick-random-file /path/to/directory wav
pick-random-file /path/to/directory png jpg gif

Package Sidebar

Install

npm i @muffin-dev/pick-random-file

Weekly Downloads

0

Version

0.4.2

License

ISC

Unpacked Size

19.1 kB

Total Files

21

Last publish

Collaborators

  • fat-muffin