Skip to content

Commit

Permalink
Merge pull request #269 from mlucool/patch-1
Browse files Browse the repository at this point in the history
Make the format string goodies clearer in README
  • Loading branch information
TooTallNate authored Oct 22, 2016
2 parents b139836 + 735919b commit 4e61d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ npm install debug

## Usage

With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.
With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` [format string goodies](https://developer.chrome.com/devtools/docs/console-api#consolelogobject-object) you're used to work fine. A unique color is selected per-function for visibility.

Example _app.js_:

Expand Down

0 comments on commit 4e61d2a

Please sign in to comment.