1.1.0 • Published 7 years ago

text2keyvalue-csv v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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

output_1tgorl output_0iifb1

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 before

Example : After Convert to Numerical after Example : MetaData metadata

Example : Convert To Bin Convert To Binary

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.

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago