json-to-table-format
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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.

Package Sidebar

Install

npm i json-to-table-format

Weekly Downloads

47

Version

1.2.0

License

MIT

Unpacked Size

8.75 kB

Total Files

13

Last publish

Collaborators

  • umang_mistry