Skip to content

Commit

Permalink
Added Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Arttse committed Aug 18, 2016
1 parent 486cb6b commit 08f5a21
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# is-url-relative-without-domain [![npm version](https://badge.fury.io/js/is-url-relative-without-domain.svg)](https://www.npmjs.com/package/is-url-relative-without-domain) [![Build Status](https://travis-ci.org/Arttse/node.is-url-relative-without-domain.svg?branch=master)](https://travis-ci.org/Arttse/node.is-url-relative-without-domain)

> Node.js module. Check if URL is relative without domain

## Install

```
$ npm install -S is-url-relative-without-domain
```


## Usage

```js
var isUrlRelativeWithoutDomain = require('is-url-relative-without-domain');

isUrlRelativeWithoutDomain('/show/must?go=on');
//=> true

isUrlRelativeWithoutDomain('https://site.com');
//=> false

isUrlRelativeWithoutDomain('site.com/show/must?go=on');
//=> false
```


## License

MIT © Nikita «Arttse» Bystrov

0 comments on commit 08f5a21

Please sign in to comment.