aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-05 01:50:01 +0300
committerValentin Popov <info@valentineus.link>2017-10-05 01:50:01 +0300
commit2c2d12f5f62384421aea1ad5bcdf75c9574cc5e0 (patch)
treebd7945ba941db39a4e0dbc1e0ca42ae7f8f96675
parent496c90871cd0cbd3e8c08c656423d434b3f3923a (diff)
downloadsimple-container-2c2d12f5f62384421aea1ad5bcdf75c9574cc5e0.tar.xz
simple-container-2c2d12f5f62384421aea1ad5bcdf75c9574cc5e0.zip
Add a description of the debugger function
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index d2de07e..583551a 100644
--- a/README.md
+++ b/README.md
@@ -102,6 +102,14 @@ $ DEBUG="container" node ./example.js
...
```
+Or redefine the function to your own:
+```JavaScript
+container.debug = function() {
+ var args = Array.prototype.slice.call(arguments);
+ /* Debugger code */
+}
+```
+
## License
[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/eslint/eslint)