Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

text files stream processing library

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 package.json
Octocat-spinner-32 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.