# @tadashi/fd

> Helper to force download

Latest version **1.1.1** (published 2023-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tadashi/fd
pnpm add @tadashi/fd
yarn add @tadashi/fd
bun add @tadashi/fd
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2023-11-01 |
| First published | 2021-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Thiago Lagden |
| Maintainers | lagden |
| Keywords | force-download, input, tiny |

## Links

- npm: https://www.npmjs.com/package/@tadashi/fd
- Repository: https://github.com/lagden/force-download
- Homepage: https://github.com/lagden/force-download#readme
- Issues: https://github.com/lagden/force-download/issues
- npm.io page: https://npm.io/package/@tadashi/fd

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2023-11-01
- 1.1.0 — 2023-11-01
- 1.0.3 — 2021-05-04
- 1.0.2 — 2021-03-12
- 1.0.1 — 2021-03-12
- 1.0.0 — 2021-03-12

## README

# force-download

[![Build Status][ci-img]][ci]
[![Coverage Status][coveralls-img]][coveralls]
[![XO code style][xo-img]][xo]

[ci-img]:        https://github.com/lagden/force-download/actions/workflows/nodejs.yml/badge.svg
[ci]:            https://github.com/lagden/force-download/actions/workflows/nodejs.yml
[coveralls-img]: https://coveralls.io/repos/github/lagden/force-download/badge.svg?branch=main
[coveralls]:     https://coveralls.io/github/lagden/force-download?branch=main
[xo-img]:        https://img.shields.io/badge/code_style-XO-5ed9c7.svg
[xo]:            https://github.com/sindresorhus/xo


Helper to force download

## Install

```
$ npm i @tadashi/fd
```


## Usage

Codepen example: https://codepen.io/lagden/pen/QWGzRXZ?editors=1010

```html
<script type="module">
  import {download} from 'https://unpkg.com/@tadashi/fd'

  btn.addEventListener('click', async () => {
    const response = await globalThis.fetch('https://mdn.github.io/dom-examples/picture-in-picture/assets/bigbuckbunny.mp4')
    await download(response, 'xxx.mp4', progress => {
      const p = progress.percent * 100
      bar.value = p
    })
  })
</script>

<button type="button" id="btn">Download</button>
<progress id="bar" value="0" max="100"></progress>
```


## Donate ❤️

- BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4


## License

MIT © [Thiago Lagden](https://github.com/lagden)

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