Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change object oriented-ness

  • Loading branch information...
commit 3171ed8831c95a11798b70928b12403a03571d5e 1 parent 7b52f8b
@lancejpollard authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 README.md
View
14 README.md
@@ -8,6 +8,12 @@
npm install underscore.logger
```
+### Browser
+
+``` html
+<script src="/javascripts/underscore.logger.js" type="text/javascript"></script>
+```
+
### Node.js
``` coffeescript
@@ -20,7 +26,7 @@ If you want to make it useable everywhere in node:
global._console ||= require('underscore.logger')
```
-Or to make it an underscore mixin:
+### Underscore Mixin
``` coffeescript
_.mixin require('underscore.logger').toObject()
@@ -28,12 +34,6 @@ _.log "It works!"
_.error "Log %s in RED", "something"
```
-### Browser
-
-``` html
-<script src="/javascripts/common-logger.js" type="text/javascript"></script>
-```
-
## Api
``` coffeescript
Please sign in to comment.
Something went wrong with that request. Please try again.