Skip to content

Commit

Permalink
Prepare to publish to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
qzb committed Apr 7, 2016
1 parent 4178596 commit 603f6b0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# is.sh
[![Build Status](https://travis-ci.org/qzb/is.sh.svg)](https://travis-ci.org/qzb/is.sh)

Fancy alternative for old good test command.

```sh
[![NPM Version][npm-image]][npm-url]
[![Build][travis-image]][travis-url]

```bash
var=123

if is equal $var 123.0; then
Expand All @@ -15,6 +17,12 @@ if is not a substring $var "foobar"; then
fi
```

## Installation

```bash
$ npm install -g is.sh
```

## Conditions

* ``is equal $valueA $valueB`` - checks if values are the same or if they are equal numbers
Expand Down Expand Up @@ -47,3 +55,9 @@ $ is a number "abc" && echo "number"
$ is not a number "abc" && echo "not a number"
not a number
```


[npm-image]: https://img.shields.io/npm/v/is.sh.svg
[npm-url]: https://npmjs.org/package/is.sh
[travis-image]: https://img.shields.io/travis/qzb/is.sh/master.svg
[travis-url]: https://travis-ci.org/qzb/is.sh
34 changes: 29 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
{
"name": "is",
"name": "is.sh",
"version": "1.0.0",
"description": "Fancy alternative for old good test command",
"install": "install -b is.sh ${PREFIX:-/usr/local}/bin/is",
"scripts": [ "is.sh" ]
"description": "Human readable conditions for bash",
"keywords": [
"shell",
"bash",
"sh",
"test",
"conditions"
],
"bin": {
"is": "./is.sh",
"is.sh": "./is.sh"
},
"directories": {
"test": "tests"
},
"scripts": {
"test": "./tests/tests.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/qzb/is.sh.git"
},
"author": "Józef Sokołowski <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/qzb/is.sh/issues"
},
"homepage": "https://github.com/qzb/is.sh#readme"
}

0 comments on commit 603f6b0

Please sign in to comment.