Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junosuarez/autodebug
https://npm.im/debug but with automatic namespacing
https://github.com/junosuarez/autodebug
Last synced: 8 days ago
JSON representation
https://npm.im/debug but with automatic namespacing
- Host: GitHub
- URL: https://github.com/junosuarez/autodebug
- Owner: junosuarez
- License: isc
- Created: 2015-05-22T23:51:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-30T20:43:49.000Z (over 7 years ago)
- Last Synced: 2024-10-23T00:28:55.574Z (23 days ago)
- Language: JavaScript
- Homepage: http://npm.im/autodebug
- Size: 6.84 KB
- Stars: 16
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# autodebug
https://npm.im/debug but with automatic namespacing
[![Build Status](https://travis-ci.org/jsdnxx/autodebug.svg?branch=master)](https://travis-ci.org/jsdnxx/autodebug)
## usage
```js
var debug = require('autodebug')
debug('hello')
```## example
```
autodebug:foo test +0ms
autodebug:foo:bar test in another file +0ms
```Based on the [`debug`](https://www.npmjs.com/package/debug) module you know and love,
but it automatically fills in the package name and relative file path for you to reduce
boilerplate.## api
Just require `autodebug` in each module you want to debug from and call it
with things you want to debugJust like the original `debug` module, you can control which modules' debug
output is shown with the `DEBUG` environment variable.See https://www.npmjs.com/package/debug#usage
## installation
```bash
$ npm install autodebug
```## contributors
- [email protected]
- tootallnate## license
ISC. (c) MMXV [email protected]. See LICENSE.md