Merge pull request #269 from mlucool/patch-1

Make the format string goodies clearer in README
This commit is contained in:
Nathan Rajlich 2016-10-22 12:12:49 -07:00 committed by GitHub
commit 4e61d2ac43

View File

@ -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_: