Lazy Log
A simple wrapper for console.log that does some fun stuff.
A fun logger
- This module is a wrapper around console.log.
- The available functions all use a chainable syntax.
- If a string is passed to one of the functions, it will log out the transformed string.
- If an object is passed to one of the functions, it will log out all of the values and transform each one. The key is not currently logged. if an array is passed to one of the functions, it will loop over the array and either log the string or act on it in the manner mentioned above if it is an object.
Installation and Setup
npm install lazy-log
var ll = ;
Examples
ll;ll;ll;
Results
- This is a simple log
// Simple examples of other log functionsll;ll;ll;
Results
- test
- john doe
- one
- two
- three
```javascript
ll.toUpper('test');
ll.toUpper({name: 'john doe'});
ll.toUpper(['one', 'two', 'three']);
Results
- TEST
- JOHN DOE
- ONE
- TWO
- THREE
ll;
Results
- test simple
- test
- TEST
ll; #### Results+ test+ make lower+ aaa+ bbb+ ccc
ll;
Results
- test
- make lower
- TEST
- AAA
ll;
Results
- [ 'Test', 'b', 'bar', 'NEWS', 'apple' ]
ll;ll;ll;
Results
- [ 'message', index: 11, input: 'This is my message that I am looking for the word "message"' ]
- [ 'message', 'message' ]
- [ 'message' ]
- [ 'message', 'message' ]
To the Community
I will probably be adding some more functions some, but adding new functionality is super easy. Check out the code, do pull requests, and let me know if you have any questions.