filesearch-package

1.0.4 • Public • Published

CLI file search utility

Installation:

  • npm install filesearch-package — a command that will install the npm package from the npm repository

Parameters(order is not strict):

  • --DIR (required) - base lookup directory
  • --TYPE (optional) - [D|F] D - directory, F - file
  • --PATTERN (optional) - regular expression to test file/directory name
  • --MIN-SIZE (optional) - minimum file size [B|K|M|G], should be skipped for directories
  • --MAX-SIZE (optional) - maximum file size [B|K|M|G], should be skipped for directories
    (B - bytes, K - kilobytes, M - megabytes, G = gigabytes)

Usage examples:

  • index.js --DIR="/Users/Files" --PATTERN=\.png
  • index.js --DIR="/Users/Files" --TYPE=D
  • index.js --DIR="/Users/Files" --PATTERN=\.js --TYPE=F --MIN-SIZE=4K

Readme

Keywords

Package Sidebar

Install

npm i filesearch-package

Weekly Downloads

1

Version

1.0.4

License

ISC

Last publish

Collaborators

  • mr-sychevskyi