Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ docker-test-%:
list:
@grep -o "^ \\+[a-zA-Z0-9_|-]\\+)" has | grep -o "[a-zA-Z0-9_|-]\\+" | tr "|" "\\n" | sort -f | sed '1,3d'

npm:
NEW_VERSION=$$(grep -oE 'VERSION="v[^"]+"' has | cut -d'"' -f2 | cut -c2-); \
sed -i -E "s/\"version\": \".+\"/\"version\": \"$${NEW_VERSION}\"/" package.json; \
npm publish

.PHONY: npm

check:
@shellcheck has
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ Just run the following:
brew install kdabir/tap/has
```

### npm

```bash
npm install -g kdabir/has
```

### Cloning the Repo

Just execute the following command in a terminal: it clones `has` repo and installs it into your path.
Expand Down
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "kdabir/has",
"version": "1.5.2",
"description": "`has` checks presence of various command line tools on the PATH and reports their installed version.",
"repository": {
"type": "git",
"url": "git+https://github.com/kdabir/has.git"
},
"author": "kdabir",
"license": "MIT",
"bugs": {
"url": "https://github.com/kdabir/has/issues"
},
"homepage": "https://github.com/kdabir/has",
"bin": {
"has": "./has"
}
}
Loading