Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update readme

  • Loading branch information...
commit 0dbac534899d7f2d6dd6c187dca2ab3000a355ad 1 parent 63e02b1
@chrisdickinson authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 README.md
View
18 README.md
@@ -9,7 +9,7 @@ Examples
Creating a nice color trace with context, reversed so that the latest call is printed last:
````javascript
-var trace = require('trace');
+var trace = require('tracejs').trace;
try {
somethingThatThrowsAnError();
@@ -22,7 +22,7 @@ try {
Iterating through frames and grabbing the constituent files:
````javascript
-var trace = require('trace');
+var trace = require('tracejs').trace;
try {
somethingThatThrowsAnError();
@@ -49,9 +49,9 @@ Holds the original error, the first line of the trace (the message), and the fra
Members:
-*. `frames`: an `Array` of `Frame` objects.
-*. `first_line`: the first line of the original stack trace -- usually contains the error message, if any.
-*. `original_error`: the original `Error` object that the `Trace` was generated from.
+* `frames`: an `Array` of `Frame` objects.
+* `first_line`: the first line of the original stack trace -- usually contains the error message, if any.
+* `original_error`: the original `Error` object that the `Trace` was generated from.
Trace.defaults
--------------
@@ -71,10 +71,10 @@ Contains information about a specific stack frame.
Members:
-*. `named_location`: The name of the scope where the frame originated; e.g., `'ReadStream.emit'`.
-*. `filename`: The filename of the frame.
-*. `line`: The integer line number of the frame.
-*. `character`: The character at which the error occurred in the line of the frame.
+* `named_location`: The name of the scope where the frame originated; e.g., `'ReadStream.emit'`.
+* `filename`: The filename of the frame.
+* `line`: The integer line number of the frame.
+* `character`: The character at which the error occurred in the line of the frame.
Frame#filedata()
--------------
Please sign in to comment.
Something went wrong with that request. Please try again.