Skip to content

Commit

Permalink
fix: readme unformatted node link and require for check-error
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Jun 27, 2016
1 parent a219c3f commit f8ea0c2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
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 f8ea0c2

Please sign in to comment.