@tdurieux/bash-command-extractor
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Bash Command Extractor

Usage

npm i -g @tdurieux/bash-command-extractor
bash-command-extractor <bash_code>

Example

./bash-command-extractor "sudo apt install git"

[
  {
    "annotations": [
      "SC-SUDO"
    ],
    "command": "sudo",
    "args": []
  },
  {
    "annotations": [
      "SC-APT-INSTALL"
    ],
    "command": "apt",
    "args": [
      {
        "annotations": [],
        "content": "install"
      },
      {
        "annotations": [
          "SC-APT-PACKAGE"
        ],
        "content": "git"
      }
    ]
  }
]

Readme

Keywords

Package Sidebar

Install

npm i @tdurieux/bash-command-extractor

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

11 kB

Total Files

14

Last publish

Collaborators

  • tdurieux