@f0c1s/command-info.nix.sh
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

node-command-info.nix.sh

Library and executable for getting information about a command on linux/bash like systems.

Installation

For command execution: npx @f0c1s/command-info.nix.sh

As library; npm i @f0c1s/command-info.nix.sh

Execution

As command

npx @f0c1s/command-info.nix.sh <cmd: ip|ifconfig|etc>

or

_cmd ip

or

command_info ip

As library

const {
    getWhich,
    getType,
    getWhereis,
    getCommandV,
    getCommandv
} = require('@f0c1s/command-info.nix.sh');

const cmd = 'ip';

console.table([getWhich, getType, getWhereis, getCommandV, getCommandv].map(fn => fn(cmd)));

Package Sidebar

Install

npm i @f0c1s/command-info.nix.sh

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

16.5 kB

Total Files

14

Last publish

Collaborators

  • iamanubhavsaini
  • sainianubhav