Last active
March 29, 2017 23:36
-
-
Save AutoSponge/af6664bbf763a11044a578ae1d05f76d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const debug = require('debug')(__filename.replace(/^.*[/]([^.]+)\.js/, '$1')) // file-name | |
| const debug = require('debug')(__filename.replace(/^.*[/](.*)[/]([^.]+)\.js/, '$1:$2')) // folder:file-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment