GitShow/ljharb/async-function
ljharb

async-function

A function that returns the normally hidden `AsyncFunction` constructor

by ljharb
Star on GitHubForknpm

JavaScript

3 stars4 forks3 contributorsQuiet · 4mo agoSince 2016MIT

Meet the team

See all 3 on GitHub →
ljharb
ljharb11 contributions
EduardoRFS
EduardoRFS2 contributions
connorshea
connorshea1 contribution

Languages

View on GitHub →
JavaScript96.4%
TypeScript3.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 4mo ago
See all on GitHub →
remcohaszing
Fix type importsOpenPR

ESM imports require a file extension. Also directory imports don’t resolve to . This goes for source code as well as type definitions. Modern module resolution settings validate this. The correct value for libraries that target Node.js 16 or lower is . For libraries that target Node.js 18 or greater should set it to or . For code that gets bundled, the correct option is . All other options are outdated. The config in sets this correctly, but it contains a syntax error.

remcohaszing · 1y ago

Recent fixes

View closed PRs →
connorshea
[meta] Fix typo in package.jsonMergedPR

I noticed this problem while looking at the authors for deps on eslint-plugin-import 😅 This problem is also present on the package.json of https://github.com/TimothyGu/generator-function

connorshea · 4mo ago
darksabrefr
Exports in package.json don't work as expected in ESMClosedIssue

Hello, In an ESM and node context, this lib causes this warning. It's indirectly imported from > > > > > in our setup. The field of the package.json is weird too :

darksabrefr · 10mo ago
abdulimr
Potential error running imported module via `tsx`ClosedIssue

Here’s a rough example of a basic import and call. When importing this library (using the code above) and attempting to execute the script via , the following fatal error occurs: This was done on Node.js and . Note that the error does NOT occur when the following is present in . I only realized that specifying the as fixes the issue when I tried to run the same code via . requires that the is set to for it to run and when set, it runs without an error. Perhaps this is not an issue with at all! I just wanted to mention the issue and my findings here from https://github.com/ljharb/get-intrinsic/issues/23 just in case. Please feel free to close this otherwise as it may be a simple and obvious misconfiguration. Thank you!

abdulimr · 10mo ago
Structured data for AI agents

Repository: ljharb/async-function. Description: A function that returns the normally hidden `AsyncFunction` constructor Stars: 3, Forks: 4. Primary language: JavaScript. Languages: JavaScript (96.4%), TypeScript (3.6%). License: MIT. Open PRs: 1, open issues: 0. Last activity: 4mo ago. Community health: 85%. Top contributors: ljharb, EduardoRFS, connorshea.

·@ofershap

Replace github.com with gitshow.dev