New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@rflukerii/docbot

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rflukerii/docbot

Bidirectional CSV <> JSON <> Markdown transformer

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

@rflukerii/docbot

A lightweight, bidirectional data format transformer. Convert between CSV, JSON, and Markdown with a simple, chainable API.

Installation

npm install @rflukerii/docbot

Usage

const { csvToJson, jsonToCsv, jsonToMarkdown, csvToMarkdown } = require('@rflukerii/docbot');

CSV → JSON

const json = csvToJson("name,age\nAlice,30\nBob,25");
// [{ name: 'Alice', age: '30' }, { name: 'Bob', age: '25' }]

JSON → CSV

const csv = jsonToCsv([{ name: 'Alice', age: '30' }, { name: 'Bob', age: '25' }]);
// "name,age\r\nAlice,30\r\nBob,25"

JSON → Markdown

const md = jsonToMarkdown([{ name: 'Alice', age: '30' }, { name: 'Bob', age: '25' }]);
// | name | age |
// | --- | --- |
// | Alice | 30 |
// | Bob | 25 |

CSV → Markdown

const md = csvToMarkdown("name,age\nAlice,30\nBob,25");
// | name | age |
// | --- | --- |
// | Alice | 30 |
// | Bob | 25 |

API

FunctionInputOutput
csvToJson(csvString)CSV stringJSON array
jsonToCsv(jsonArray)JSON arrayCSV string
jsonToMarkdown(jsonArray)JSON arrayMarkdown table
csvToMarkdown(csvString)CSV stringMarkdown table

License

MIT

Keywords

csv

FAQs

Package last updated on 06 Mar 2026

Related posts