You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
</h1>
6
6
7
7
<palign=center>
8
-
Error comparison and information related utility for [node](http://nodejs.org) and the browser.
8
+
Error comparison and information related utility for <ahref="http://nodejs.org">node</a> and the browser.
9
9
</p>
10
10
11
11
<palign=center>
@@ -104,13 +104,13 @@ The primary export of `check-error` is an object which has the following methods
104
104
*`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.
105
105
106
106
```js
107
-
var checkError =require('checkError');
107
+
var checkError =require('check-error');
108
108
```
109
109
110
110
#### .compatibleInstance(err, errorLike)
111
111
112
112
```js
113
-
var checkError =require('checkError');
113
+
var checkError =require('check-error');
114
114
115
115
varfuncThatThrows=function() { thrownewTypeError('I am a TypeError') };
116
116
var caughtErr;
@@ -130,7 +130,7 @@ checkError.compatibleInstance(caughtErr, new TypeError('Another error')); // fal
130
130
#### .compatibleConstructor(err, errorLike)
131
131
132
132
```js
133
-
var checkError =require('checkError');
133
+
var checkError =require('check-error');
134
134
135
135
varfuncThatThrows=function() { thrownewTypeError('I am a TypeError') };
0 commit comments