Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 778 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 778 Bytes

json-to-table-format

json-to-table-format is a lightweight npm module designed to convert JSON data into tabular format, making it easier to visualize and work with structured data.

Installation

You can install json-to-table-format via npm:

bash npm install json-to-table-format

Usage

Typescript

import jsontoTable from 'json-to-table-format';

const jsonData = [
  { id: 1, name: 'John', age: 30 },
  { id: 2, name: 'Jane', age: 25 },
];

const tabularData: string = jsontoTable(jsonData);
console.log(tabularData); 

Output

id     name     age                 
1      John      30          
2      Jane      25       

Features

  • Converts JSON data into tabular format.
  • Lightweight and easy to use.
  • Supports TypeScript.