Socket
Socket
Sign inDemoInstall

ink-spreadsheet

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ink-spreadsheet

An ink component to render a spreadsheet to the terminal


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 10 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc