Skip to content

Instantly share code, notes, and snippets.

@peko
Created November 19, 2015 23:05
Show Gist options
  • Select an option

  • Save peko/0d7590b7345b835839bc to your computer and use it in GitHub Desktop.

Select an option

Save peko/0d7590b7345b835839bc to your computer and use it in GitHub Desktop.
storage = {}
rl = require('readline').createInterface
input: require('fs').createReadStream('test-data.txt')
rl.on 'line', (l)->
[k,v] = l.split '\t'
# console.log k, v
storage[k] = v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment