# async-script-promise

> asynchronously load scripts, returns a promise

Latest version **1.0.0** (published 2016-09-19) · 0 weekly downloads

## Install

```sh
npm install async-script-promise
pnpm add async-script-promise
yarn add async-script-promise
bun add async-script-promise
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-09-19 |
| First published | 2016-09-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Matthew Mueller |
| Maintainers | mattmueller |
| Keywords | async, loading, promise |

## Links

- npm: https://www.npmjs.com/package/async-script-promise
- Repository: https://github.com/MatthewMueller/async-script-promise
- Homepage: https://github.com/MatthewMueller/async-script-promise#readme
- Issues: https://github.com/MatthewMueller/async-script-promise/issues
- npm.io page: https://npm.io/package/async-script-promise

## Dependencies (1)

- [async-script](https://npm.io/package/async-script.md) 0.0.1

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-09-19

## README

# async-script-promise

  asynchronously load scripts.

  Returns a promise, so you can kick it off as soon as your script loads, but wait to use it until it's actually loaded.

## Install

```js
npm install async-script-promise
```

## Use

```js
it('should load stripe', async () => {
  // start loading...
  let p = load('https://checkout.stripe.com/v3/checkout.js')

  // ensure that it's finished before using it
  await p
  assert.ok(window.StripeCheckout.configure)
})
```

## License

MIT

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