1.0.5 • Published 10 years ago

tsv-loader v1.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago

TSV Loader

Description

This module process data with whitespaces and transform them into organized json style data. The project use bluebird as Promise.

Download

npm install tsv-loader --save

Sample Code

var tsvLoader = require('tsv-loader');

tsvLoader('./test.dta')
.then(function(data){
  console.log(data);
})
.catch(function(err){
  console.log(err);
});

Sample Input

   9.0000000e+00   2.7217773e-01  -4.8479375e+00
   6.0000000e+00   2.6513281e-01  -5.1020000e+00
   3.0000000e+00   3.3592578e-01  -2.9215625e+00

Sample Output

[ [ '9.0000000e+00', '2.7217773e-01', '-4.8479375e+00' ],
  [ '6.0000000e+00', '2.6513281e-01', '-5.1020000e+00' ],
  [ '3.0000000e+00', '3.3592578e-01', '-2.9215625e+00' ] ]

Download Links

Github npm

Used Module

node-tsv-json

1.0.5

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago