1
jybox 2014-10-26 15:04:47 +08:00
data = fs.readFileSync('xxoo').split('\n').map (line) ->
[name, birthday, tel] = line.split('\t') return name: name, birthday: birthday, tel: tel mongo_client.collection('xxoo').insert data, (err) -> console.error err |