0.1.1 • Published 11 months ago

ink-spreadsheet v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

ink-spreadsheet

Display spreadsheets in your terminal with ease.

Spreadsheet inside your terminal

Install

npm install ink-spreadsheet

Usage

import React from 'react';
import Spreadsheet, { createColumnHelper } from 'ink-spreadsheet';

interface Person {
  name: string;
  email: string;
}

const columnHelper = createColumnHelper<Person>();
const columns = [
  columnHelper('name', {
    header: 'Name',
  }),
  columnHelper('email', {
    header: 'Email',
  }),
];

const data = [
  {
    name: 'John Doe',
    email: 'john@doe.com',
  },
  {
    name: 'Jane Doe',
    email: 'jane@doe.com',
  },
];

export default function Component() {
  return <Spreadsheet columns={columns} data={data} />;
}

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

0.1.1

11 months ago

0.1.0

11 months ago