caterpillar
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -1,6 +0,10 @@ | ||
(The MIT License) | ||
Copyright (c) 2012+ Bevry Pty Ltd <us@bevry.me> | ||
Copyright (c) 2011 Benjamin Lupton <b@lupton.cc> | ||
<!-- LICENSEFILE/ --> | ||
# License | ||
Copyright © 2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me) | ||
<br/>Copyright © 2011 Benjamin Lupton <b@lupton.cc> (http://balupton.com) | ||
## The MIT License | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
@@ -11,1 +15,5 @@ | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
<!-- /LICENSEFILE --> | ||
@@ -200,3 +200,21 @@ // Generated by CoffeeScript 1.6.3 | ||
Transform: Transform, | ||
Logger: Logger | ||
Logger: Logger, | ||
createTransform: function() { | ||
var args; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
return (function(func, args, ctor) { | ||
ctor.prototype = func.prototype; | ||
var child = new ctor, result = func.apply(child, args); | ||
return Object(result) === result ? result : child; | ||
})(Transform, args, function(){}); | ||
}, | ||
createLogger: function() { | ||
var args; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
return (function(func, args, ctor) { | ||
ctor.prototype = func.prototype; | ||
var child = new ctor, result = func.apply(child, args); | ||
return Object(result) === result ? result : child; | ||
})(Logger, args, function(){}); | ||
} | ||
}; |
107
package.json
{ | ||
"name": "caterpillar", | ||
"version": "2.0.4", | ||
"description": "Caterpillar is the ultimate logging system for Node.js, based on transform streams you can log to it and pipe the output off to different locations, including some pre-made ones. Caterpillar also supports log levels according to the RFC standard, as well as line, method, and file fetching for messages. You can even use it in web browsers with caterpillar-browser.", | ||
"homepage": "https://github.com/bevry/caterpillar", | ||
"keywords": [ | ||
"caterpillar", | ||
"console", "log", "logger", "logging", "debug", | ||
"stream", "transform" | ||
], | ||
"author": "Bevry Pty Ltd <us@bevry.me> (http://bevry.me)", | ||
"maintainers": [ | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)" | ||
], | ||
"contributors": [ | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/bevry/caterpillar/issues" | ||
}, | ||
"repository" : { | ||
"type": "git", | ||
"url": "http://github.com/bevry/caterpillar.git" | ||
}, | ||
"engines" : { | ||
"node": ">=0.8" | ||
}, | ||
"dependencies": { | ||
"extendr": "~2.1.0", | ||
"readable-stream": "~1.0.2" | ||
}, | ||
"devDependencies": { | ||
"caterpillar-filter": "2.x", | ||
"caterpillar-human": "2.x", | ||
"coffee-script": "~1.6.2", | ||
"joe": "~1.2.0", | ||
"joe-reporter-console": "~1.2.1", | ||
"chai": "~1.7.2" | ||
}, | ||
"directories": { | ||
"lib": "./out/lib" | ||
}, | ||
"scripts": { | ||
"test": "node ./out/test/caterpillar-test.js" | ||
}, | ||
"main": "./out/lib/caterpillar.js" | ||
"title": "Caterpillar", | ||
"name": "caterpillar", | ||
"version": "2.0.5", | ||
"description": "Caterpillar is the ultimate logging system for Node.js, based on transform streams you can log to it and pipe the output off to different locations, including some pre-made ones. Caterpillar also supports log levels according to the RFC standard, as well as line, method, and file fetching for messages. You can even use it in web browsers with caterpillar-browser.", | ||
"homepage": "https://github.com/bevry/caterpillar", | ||
"keywords": [ | ||
"caterpillar", | ||
"console", | ||
"log", | ||
"logger", | ||
"logging", | ||
"debug", | ||
"stream", | ||
"transform" | ||
], | ||
"author": "2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011 Benjamin Lupton <b@lupton.cc> (http://balupton.com)", | ||
"maintainers": [ | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)" | ||
], | ||
"contributors": [ | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)", | ||
"t-visualappeal (https://github.com/t-visualappeal)" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/bevry/caterpillar/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/bevry/caterpillar.git" | ||
}, | ||
"engines": { | ||
"node": ">=0.8" | ||
}, | ||
"dependencies": { | ||
"extendr": "~2.1.0", | ||
"readable-stream": "~1.1.9" | ||
}, | ||
"devDependencies": { | ||
"caterpillar-filter": "2.x", | ||
"caterpillar-human": "2.x", | ||
"coffee-script": "~1.6.2", | ||
"joe": "~1.3.0", | ||
"joe-reporter-console": "~1.2.1", | ||
"chai": "~1.8.1" | ||
}, | ||
"directories": { | ||
"lib": "./out/lib" | ||
}, | ||
"scripts": { | ||
"test": "node ./out/test/caterpillar-test.js" | ||
}, | ||
"main": "./out/lib/caterpillar.js", | ||
"license": { | ||
"type": "MIT" | ||
}, | ||
"badges": { | ||
"travis": true, | ||
"npm": true, | ||
"gittip": "bevry", | ||
"flattr": "344188/balupton-on-Flattr", | ||
"paypal": "QB8GQPZAH84N6" | ||
} | ||
} |
@@ -0,24 +1,38 @@ | ||
<!-- TITLE/ --> | ||
# Caterpillar | ||
[![Build Status](https://secure.travis-ci.org/bevry/caterpillar.png?branch=master)](http://travis-ci.org/bevry/caterpillar) | ||
[![NPM version](https://badge.fury.io/js/caterpillar.png)](https://npmjs.org/package/caterpillar) | ||
[![Flattr this project](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](http://flattr.com/thing/344188/balupton-on-Flattr) | ||
<!-- /TITLE --> | ||
<!-- BADGES/ --> | ||
[![Build Status](http://img.shields.io/travis-ci/bevry/caterpillar.png?branch=master)](http://travis-ci.org/bevry/caterpillar "Check this project's build status on TravisCI") | ||
[![NPM version](https://badge.fury.io/js/caterpillar.png)](https://npmjs.org/package/caterpillar "View this project on NPM") | ||
[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip") | ||
[![Flattr donate button](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![PayPayl donate button](https://www.paypalobjects.com/en_AU/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
<!-- /BADGES --> | ||
Caterpillar is the ultimate logging system for Node.js, based on [transform streams](http://nodejs.org/api/stream.html#stream_class_stream_transform) you can log to it and pipe the output off to different locations, including [some pre-made ones](http://npmjs.org/keyword/caterpillar-transform). Caterpillar also supports log levels according to the [RFC standard](http://www.faqs.org/rfcs/rfc3164.html), as well as line, method, and file fetching for messages. You can even use it in web browsers with the [Browser Transform](https://github.com/bevry/caterpillar-browser). | ||
<!-- INSTALL/ --> | ||
## Install | ||
### Backend | ||
### [Node](http://nodejs.org/), [Browserify](http://browserify.org/) | ||
- Use: `require('caterpillar')` | ||
- Install: `npm install --save caterpillar` | ||
1. [Install Node.js](http://bevry.me/node/install) | ||
2. `npm install --save caterpillar` | ||
### [Ender](http://ender.jit.su/) | ||
- Use: `require('caterpillar')` | ||
- Install: `ender add caterpillar` | ||
### Frontend | ||
<!-- /INSTALL --> | ||
1. [See Browserify](http://browserify.org/) | ||
## Usage | ||
@@ -31,5 +45,5 @@ | ||
var level = process.argv.indexOf('-d') === -1 ? 6 : 7; | ||
var logger = new (require('./').Logger)({level:level}); | ||
var filter = new (require('caterpillar-filter').Filter)(); | ||
var human = new (require('caterpillar-human').Human)(); | ||
var logger = require('caterpillar').createLogger({level:level}); | ||
var filter = require('caterpillar-filter').createFilter(); | ||
var human = require('caterpillar-human').createHuman(); | ||
@@ -149,24 +163,51 @@ // Pipe logger output to filter, then filter output to stdout | ||
<!-- HISTORY/ --> | ||
## History | ||
You can discover the history inside the [History.md](https://github.com/bevry/caterpillar/blob/master/History.md#files) file | ||
[Discover the change history by heading on over to the `History.md` file.](https://github.com/bevry/caterpillar/blob/master/History.md#files) | ||
<!-- /HISTORY --> | ||
<!-- BACKERS/ --> | ||
## Backers | ||
### Maintainers | ||
These amazing people are maintaining this project: | ||
- Benjamin Lupton <b@lupton.cc> (https://github.com/balupton) | ||
### Sponsors | ||
No sponsors yet! Will you be the first? | ||
[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip") | ||
[![Flattr donate button](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![PayPayl donate button](https://www.paypalobjects.com/en_AU/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
### Contributors | ||
These amazing people have contributed code to this project: | ||
- Benjamin Lupton <b@lupton.cc> (https://github.com/balupton) - [view contributions](https://github.com/bevry/caterpillar/commits?author=balupton) | ||
- t-visualappeal (https://github.com/t-visualappeal) - [view contributions](https://github.com/bevry/caterpillar/commits?author=t-visualappeal) | ||
[Become a contributor!](https://github.com/bevry/caterpillar/blob/master/Contributing.md#files) | ||
<!-- /BACKERS --> | ||
<!-- LICENSE/ --> | ||
## License | ||
Licensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/) | ||
<br/>Copyright © 2012+ [Bevry Pty Ltd](http://bevry.me) | ||
<br/>Copyright © 2011 [Benjamin Lupton](http://balupton.com) | ||
Licensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT license](http://creativecommons.org/licenses/MIT/) | ||
Copyright © 2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me) | ||
<br/>Copyright © 2011 Benjamin Lupton <b@lupton.cc> (http://balupton.com) | ||
## Thanks | ||
Uses the following: | ||
<!-- /LICENSE --> | ||
- [RFC3164](http://www.faqs.org/rfcs/rfc3164.html) for the level codes and names | ||
Inspired by the following: | ||
- [Alexander Dorofeev's](https://github.com/akaspin) [AIN](https://github.com/akaspin/ain) | ||
- [TJ Holowaychuk's](https://github.com/visionmedia) [Log.js](https://github.com/visionmedia/log.js) | ||
- [Igor Urminček's](https://github.com/igo) [NLogger](https://github.com/igo/nlogger) | ||
- [SchizoDuckie's](https://github.com/SchizoDuckie) [Node-CLI](https://github.com/SchizoDuckie/Node-CLI/) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18120
221
212
+ Addedreadable-stream@1.1.14(transitive)
- Removedreadable-stream@1.0.34(transitive)
Updatedreadable-stream@~1.1.9