# spreadsheet-builder-lib

> The purpose of this library is to create spreadsheet files using JavaScript/TypeScript code.

Latest version **0.0.9** (published 2022-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install spreadsheet-builder-lib
pnpm add spreadsheet-builder-lib
yarn add spreadsheet-builder-lib
bun add spreadsheet-builder-lib
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2022-09-18 |
| First published | 2022-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 39 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | fwilhe2 |

## Links

- npm: https://www.npmjs.com/package/spreadsheet-builder-lib
- npm.io page: https://npm.io/package/spreadsheet-builder-lib

## Recent versions

- 0.0.9 (latest) — 2022-09-18
- 0.0.8 — 2022-09-18
- 0.0.7 — 2022-09-18
- 0.0.6 — 2022-09-18
- 0.0.5 — 2022-09-18
- 0.0.4 — 2022-09-15
- 0.0.3 — 2022-09-11
- 0.0.2 — 2022-09-11

## README

# Spreadsheet builder library

The purpose of this library is to create spreadsheet files using JavaScript/TypeScript code.

```bash
yarn add spreadsheet-builder-lib
```

```bash
npm i spreadsheet-builder-lib
```

Example code:

```typescript
import { buildSpreadsheet } from "spreadsheet-builder-lib";

const spreadsheet = [
  ["String", "Float", "Date", "Time", "Currency", "Percentage"],
  [
    {
      value: "ABBA",
      valueType: "string",
    },
    {
      value: "42.3324",
      valueType: "float",
    },
    {
      value: "2022-02-02",
      valueType: "date",
    },
    {
      value: "19:03:00",
      valueType: "time",
    },
    {
      value: 2.22,
      valueType: "currency",
      currency: "EUR",
    },
    {
      value: 0.4223,
      valueType: "percentage",
    },
  ],
];

const mySpreadsheet = await buildSpreadsheet(spreadsheet);
await writeFile("mySpreadsheet.fods", mySpreadsheet);
```

---
_Source: https://npm.io/package/spreadsheet-builder-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
