@eckidevs/tool

0.1.5 • Public • Published

Tool

General purpose CLI tool for everyday things 🛠️

Installation

npm install -g @eckidevs/tool

or

yarn global add @eckidevs/tool

Usage

Tool is very bare bones for now. 🖖

Get command

tool get <options> <target>

Options

  • -f or --file: A file path (absolute/relative).
  • -u or --url: A http(s) url to fetch text content from.

Target

If -f is passed, a PathLike string should be passed directly after the flag. If -u is passed, a valid url to fetch content in utf-8.

CLI help output

main help

tool <command> <option>

Commands:
  tool get  Gets file or web address text content.

Options:
      --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Kaizen Media CC

get help

tool get <option> [url | path]

Options:
      --version  Show version number                                   [boolean]
  -f, --file     File path to read. Can be absolute or relative.        [string]
  -u, --url      The url to request text content from                   [string]
  -h, --help     Show help                                             [boolean]

Examples:
  tool get -f example.txt         Gets the file contents as a string
  tool get -u https://google.com  Retrieves a web response as text.

Contribute something that you want to use errr day ✌️

Dependents (0)

Package Sidebar

Install

npm i @eckidevs/tool

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

613 kB

Total Files

7

Last publish

Collaborators

  • eckidevs