Skip to content

Commit 22a3985

Browse files
authored
Merge pull request #8 from lucasfcosta/readme-require-and-formatting-fixes
fix: readme unformatted node link and require for check-error
2 parents d257b86 + f8ea0c2 commit 22a3985

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</h1>
66

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

1111
<p align=center>
@@ -104,13 +104,13 @@ The primary export of `check-error` is an object which has the following methods
104104
* `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.
105105

106106
```js
107-
var checkError = require('checkError');
107+
var checkError = require('check-error');
108108
```
109109

110110
#### .compatibleInstance(err, errorLike)
111111

112112
```js
113-
var checkError = require('checkError');
113+
var checkError = require('check-error');
114114

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

132132
```js
133-
var checkError = require('checkError');
133+
var checkError = require('check-error');
134134

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

151151
```js
152-
var checkError = require('checkError');
152+
var checkError = require('check-error');
153153

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

173173
```js
174-
var checkError = require('checkError');
174+
var checkError = require('check-error');
175175

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

192192
```js
193-
var checkError = require('checkError');
193+
var checkError = require('check-error');
194194

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

0 commit comments

Comments
 (0)