text2keyvalue-csv
v1.1.0
Published
This is just a little tool that makes for help you process your CSV file easier by convert 'Text' to be Key like Key-Value Pairs.
Downloads
3
Maintainers
Readme
Text2KeyValueCSV
This is just a little tool that makes for help you process your CSV file easier by convert 'Text' to be Key like Key-Value Pairs. and Yes!! It's can convert from Nominal --> Binary
Features!
- Convert Nominal --> Numerical
- Convert Nominal --> Binary
- Create MetaData File
Installation
$ npm install text2keyvalue-csv --save
How to use
Basic use ...
const txt2kv = require('text2keyvalue-csv');
txt2kv({
filename: './data.csv',
outputFilename: './newData.csv',
outputMetaData: './metadata.json',
column: 0,
});
With async await ...
const txt2kv = require('text2keyvalue-csv');
async function doSomething() {
const status = await txt2kv({
filename: './data.csv',
outputFilename: './newData.csv',
outputMetaData: './metadata.json',
column: 0,
});
console.log(status); // should be true
}
doSomething();
Convent From Nominal to Binary
const txt2kv = require('text2keyvalue-csv');
txt2kv({
filename: './data.csv',
outputFilename: './newData.csv',
outputMetaData: './metadata.json',
column: 0,
mode: 'binary',
});
Example
Example : RawData
Example : After Convert to Numerical Example : MetaData
Example : Convert To Bin
Todos
- Tell me want do you want
- or PR whatever you want
- Even 'Test' !!!
License
MIT
" Make It What You Want! "
Don't forget to Pull Request!!!
ima8.