# aonce

> Run an async function once and remember its results

Latest version **0.1.0** (published 2014-10-09) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install aonce
pnpm add aonce
yarn add aonce
bun add aonce
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-10-09 |
| First published | 2014-10-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sidney San Martín |
| Maintainers | sidnicious |

## Links

- npm: https://www.npmjs.com/package/aonce
- Repository: https://github.com/Sidnicious/aonce
- Issues: https://github.com/Sidnicious/aonce/issues
- npm.io page: https://npm.io/package/aonce

## Recent versions

- 0.1.0 (latest) — 2014-10-09

## README

# aonce

Run an async function once, no matter how many times it's called.

## Example

```js
var init = aonce(function(cb) {
	// Do some initialization
	results = {};
	cb(results);
});

// Later:

init(function(results) {
	// do something with results
});

// Elsewhere:

init(function(results) {
	// do something else with results
});

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