json-to-table-format
v1.2.0
Published
A module for converting JSON data into a tabular format.
Downloads
61
Maintainers
Readme
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.