Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Simplified language in the opening paragraph. Closes #340 #373

Merged
merged 2 commits into from
Dec 16, 2016

Conversation

yamikuronue
Copy link
Contributor

No description provided.

@@ -12,7 +12,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](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.
`debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to specify which modules you wish to see debug statements from when working an issue.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we reword This will allow you to specify which modules you wish to see debug statements from when working an issue. to This will allow you to toggle on and off log output for different parts of your project

@yamikuronue
Copy link
Contributor Author

Better?

@thebigredgeek
Copy link
Contributor

Yup! Thanks

@thebigredgeek thebigredgeek merged commit cea345a into debug-js:master Dec 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants