You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

bash-base

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bash-base

A common lib for creating bash script easily.

2.3.2
Version published
Weekly downloads
1
-97.22%
Maintainers
1
Weekly downloads
 
Created

Welcome to bash-base

License GitHub top language codecov GitHub Actions Status Conventional Commits semantic-release GitHub release npm package Docker Cloud Build Status GitHub commits since latest release

What's bash-base?

A common lib for creating bash script easily.

Latest Update

See CHANGELOG.md

How to use

Get from github

Import bash-base directly from github during every execution

Simply write in console or script:

If to import latest version:

source <(curl -fsSL https://raw.githubusercontent.com/zhang-hongjie/bash-base/master/src/bash-base.sh)
or
eval "$(curl -fsSL https://raw.githubusercontent.com/zhang-hongjie/bash-base/master/src/bash-base.sh)"

If to import specific version:

source <(curl -fsSL https://raw.githubusercontent.com/zhang-hongjie/bash-base/v2.3.1/src/bash-base.sh)
or
eval "$(curl -fsSL https://raw.githubusercontent.com/zhang-hongjie/bash-base/v2.3.1/src/bash-base.sh)

Install from NPM

See npm repackage

npm install -g bash-base

verify the installation

man bash-base

or simply write in your script:

# install bash-base from npmjs only if not installed:
bash-base 2>/dev/null || npm install -g bash-base

# import it
source bash-base

Install from docker

See docker hub

docker pull zhj2074/bash-base:latest

Or run directly

docker run -it zhj2074/bash-base:latest

Example

See example folder

Reference

See reference

Contributing

See How to contribute

License

MIT.

Keywords

FAQs

Package last updated on 01 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts