cvs-magic
v1.0.1
Published
Manage your CSV file as you wish by adding or removing information and convert it to other formats such as markdown, json and xlsx.
Downloads
3
Maintainers
Readme
cvs-magic
Manage your CSV file as you wish by adding or removing information and convert it to other formats such as markdown, json and xlsx.
API Reference
How to use
const { convertCsvToMarkdown } = require("cvs-magic");
convertCsvToMarkdown("<PATH-CSV>","<PATH-OUTH-MD>")
| Parameter | Type | Description |
| :-------- | :------- | :------- |
| convertCSVtoXLSX
| string
string
| Convert the csv file to xlsx. |
| convertCsvToJson
| string
string
| Convert the csv file to json. |
| convertCsvToMarkdown
| string
string
| Convert the csv file to format md.|
| convertJsonToCsv
| string
string
| Convert the json file to csv |
| deleteHorizontalRow
| string
int
string
| Completely removes the horizontal row. |
| deleteSpecificData
| string
int
string
string
| Deletes data from a column (vertical) |
| deleteVerticalRow
| string
int
string
| Completely removes the vertical row. |
| searchAndModify
| string
int
string
int
string
string
| Search and modify a specific data, you have to assign which column vertically and horizontally and then enter your new data. |
| addRowOrData
| string
array
string
| Add new header values: { col1: 'value1', col2: 'value2', col3: 'value3' } |