# @bytesoftio/helpers-file

> ## Installation

Latest version **1.0.0** (published 2021-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bytesoftio/helpers-file
pnpm add @bytesoftio/helpers-file
yarn add @bytesoftio/helpers-file
bun add @bytesoftio/helpers-file
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-01-04 |
| First published | 2021-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Maxim Kott |
| Maintainers | maximkott |

## Links

- npm: https://www.npmjs.com/package/@bytesoftio/helpers-file
- Repository: https://github.com/bytesoftio/helpers-file
- npm.io page: https://npm.io/package/@bytesoftio/helpers-file

## Recent versions

- 1.0.0 (latest) — 2021-01-04

## README

# @bytesoftio/helpers-file

## Installation

`yarn add @bytesoftio/helpers-file` or `npm install @bytesoftio/helpers-file`

## Table of contents

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Description](#description)
- [Usage](#usage)
  - [downloadAsFile](#downloadasfile)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Description

Collection of file related helpers.

## Usage

### downloadAsFile

Download any kind of data as a file (works only in browser).

```ts
import { downloadAsFile } from "@bytesoftio/helpers-file"

const fileName = "data.csv"
const data = "name,age\nJohn,30\nSnow,40"

downloadAsFile(fileName, data)
```

---
_Source: https://npm.io/package/@bytesoftio/helpers-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
