0.6.2 • Published 4 years ago

node-shellcheck v0.6.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ShellCheck

Node wrapper of ShellCheck, a GPLv3 tool that gives warnings and suggestions for bash/sh shell scripts.

This package downloads koalaman's shellcheck from the official servers and makes the binary available at node_modules/.bin/shellcheck. There is also a NodeJS module available so you can execute directly from JavaScript.

const shellcheck = require("node-shellcheck");
shellcheck("tests/example.bash");

Installation

yarn add --dev shellcheck

Usage

Edit package.json to call shellcheck from your npm/yarn scripts:

{
  "scripts": {
    "lint": "shellcheck '**/*.sh'"
  }
}

Related

  • hadolint: Lint Dockerfiles and the inline bash code in them

License

0.6.2

4 years ago

0.6.0

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.1

4 years ago

0.4.8

4 years ago

0.4.5

4 years ago