Skip to content

Commit

Permalink
Merge pull request #8 from lucasfcosta/readme-require-and-formatting-…
Browse files Browse the repository at this point in the history
…fixes

fix: readme unformatted node link and require for check-error
  • Loading branch information
keithamus authored Jun 27, 2016
2 parents d257b86 + f8ea0c2 commit 22a3985
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</h1>

<p align=center>
Error comparison and information related utility for [node](http://nodejs.org) and the browser.
Error comparison and information related utility for <a href="http://nodejs.org">node</a> and the browser.
</p>

<p align=center>
Expand Down Expand Up @@ -104,13 +104,13 @@ The primary export of `check-error` is an object which has the following methods
* `getMessage(err)` - Retrieves the message of an error or `err` itself if it's a String. If `err` or `err.message` is undefined we return an empty String.

```js
var checkError = require('checkError');
var checkError = require('check-error');
```

#### .compatibleInstance(err, errorLike)

```js
var checkError = require('checkError');
var checkError = require('check-error');

var funcThatThrows = function() { throw new TypeError('I am a TypeError') };
var caughtErr;
Expand All @@ -130,7 +130,7 @@ checkError.compatibleInstance(caughtErr, new TypeError('Another error')); // fal
#### .compatibleConstructor(err, errorLike)

```js
var checkError = require('checkError');
var checkError = require('check-error');

var funcThatThrows = function() { throw new TypeError('I am a TypeError') };
var caughtErr;
Expand All @@ -149,7 +149,7 @@ checkError.compatibleConstructor(caughtErr, RangeError); // false
#### .compatibleMessage(err, errMatcher)

```js
var checkError = require('checkError');
var checkError = require('check-error');

var funcThatThrows = function() { throw new TypeError('I am a TypeError') };
var caughtErr;
Expand All @@ -171,7 +171,7 @@ checkError.compatibleMessage(caughtErr, 'I do not exist'); // false
#### .getConstructorName(errorLike)

```js
var checkError = require('checkError');
var checkError = require('check-error');

var funcThatThrows = function() { throw new TypeError('I am a TypeError') };
var caughtErr;
Expand All @@ -190,7 +190,7 @@ checkError.getConstructorName(caughtErr) // 'TypeError'
#### .getMessage(err)

```js
var checkError = require('checkError');
var checkError = require('check-error');

var funcThatThrows = function() { throw new TypeError('I am a TypeError') };
var caughtErr;
Expand Down

0 comments on commit 22a3985

Please sign in to comment.