# push-attachment

> Tiny library for pushing attachments to browser

Latest version **1.0.1** (published 2023-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install push-attachment
pnpm add push-attachment
yarn add push-attachment
bun add push-attachment
```

## 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.1 |
| Published | 2023-06-26 |
| First published | 2023-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Krotov Artem |
| Maintainers | timmson |
| Keywords | production, calendar |

## Links

- npm: https://www.npmjs.com/package/push-attachment
- Repository: https://github.com/timmson/push-attachment
- Homepage: https://github.com/timmson/push-attachment#readme
- Issues: https://github.com/timmson/push-attachment/issues
- npm.io page: https://npm.io/package/push-attachment

## Recent versions

- 1.0.1 (latest) — 2023-06-26
- 1.0.0 — 2023-06-26

## README

# push-attachment

Tiny library for pushing attachments to browser

# How to use

```bash
npm i push-attachment
```

```javascript
import pushAttachment from "./push-attachment.js"

pushAttachment("Hello!", {attachmentName: "hello.doc", contentType: "text/html;charset=utf-8"})
```

See example at [dist/index.html](./dist/index.html)

## Arguments:
```typescript
declare const pushAttachment: (data: string /* like "Hello!"*/, options: PushAttachmentOptions /* See Below*/) => void;

interface PushAttachmentOptions {
    contentType: string  // like  "text/html;charset=utf-8"
    attachmentName: string  // like my.doc
}
```

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