reports/frontend/node_modules/async-function
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00
..
.github Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
test Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
.eslintrc Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
.nycrc Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
CHANGELOG.md Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
index.d.mts Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
index.d.ts Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
index.js Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
index.mjs Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
legacy.js Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
LICENSE Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
package.json Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
README.md Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
require.mjs Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00
tsconfig.json Add settings page for managing forecasting API key and URL via UI 2026-07-20 14:37:36 +00:00

async-function Version Badge

github actions coverage License Downloads

npm badge

A function that returns the normally hidden AsyncFunction constructor, when available.

Getting started

npm install --save async-function

Usage/Examples

const assert = require('assert');
const AsyncFunction = require('async-function')();

const fn = new AsyncFunction('return 1');

assert.equal(fn.toString(), 'async function anonymous(\n) {\nreturn 1\n}');

fn().then(x => {
    assert.equal(x, 1);
});

Tests

Clone the repo, npm install, and run npm test