Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
text files stream processing library
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.gitignore
README.markdown
package.json
toons.js

README.markdown

Future toons

Text file streaming/processing lightweight library for nodejs. To process big or semi big amounts of logs aka. ngnix, rails production logs i decided to build a set of simple tools that will not just blow up on ~7-10 million of lines files.

Running tests

npm text

Testing

i'm using mocha lib by TJ!

example

var toons = require('future_toons');
new toons("example.js", function(line){
  console.log(line);
});

this will print line by line contents of file example.js, first function you supply is callback that will take each line. Optionaly you can supply 3 argument which is callback function that will be called at the end of processing.

command line interface

you can use future_toons from command line like this

node bin/toons -f lib/toons.js -e 'function(line){ if(line.length > 1){console.log("> " + line)}else{console.log(line)}; }'

node bin/toons -h for help

Authors

Jakub Oboza - http://no-fucking-idea.com

Something went wrong with that request. Please try again.