GitShow/antfu/utils
antfu

utils

Collection of common JavaScript / TypeScript utils

by antfu
Star on GitHubForknpm

TypeScript

876 stars68 forks21 contributorsQuiet · 10mo agoSince 2021v9.3.0MIT

Meet the team

See all 21 on GitHub →
antfu
antfu120 contributions
johannschopplich
johannschopplich4 contributions
NamesMT
NamesMT3 contributions
Wing-9527
Wing-95272 contributions
LuciNyan
LuciNyan1 contribution
s3xybun
s3xybun1 contribution
liuyang0826
liuyang08261 contribution
jbaubree
jbaubree1 contribution

Languages

View on GitHub →
TypeScript99.5%
JavaScript0.5%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 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 10mo ago
See all on GitHub →
maxtaran2010
fix(string): preserve falsy variable values in template()OpenPR

Summary The function uses when doing named substitution, which causes it to fall through to the fallback value whenever a variable is explicitly set to a falsy value — , , or . Buggy behavior:** Fix Replace with so only keys that are actually absent from trigger the fallback, not keys that are present but hold a falsy value. Test plan [x] Added test cases for , , and values in named template mode [x] All existing tests continue to pass ( — 39 tests passing)

maxtaran2010 · 1mo ago
NamesMT
`deepMerge` types is brokenOpenIssue

Describe the bug Output types of is broken, observed with plain simple primitive and typed variable. Reproduction https://github.com/NamesMT/starter-ts/tree/antfu/utils_repro System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [ ] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

NamesMT · 9mo ago

Recent fixes

View closed PRs →
NamesMT
[request] `slugify()` utilClosedIssue

Clear and concise description of the problem Would be amazing if the package includes a util to convert a string to an URL-slug, it's pretty commonly used when building ECOM / content-centric web applications. Suggested solution Probably something like: I've been using the above snippet for a few projects, haven't hit any weird cases yet. Alternative _No response_ Additional context _No response_ Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

NamesMT · 9mo ago
NamesMT
feat(string): new `slugify` functionMergedPR

Linked Issues Resolves #52

NamesMT · 9mo ago
s3xybun
Return type of `objectKeys` cannot be using as keys of generic object type.ClosedIssue

Describe the bug Return type of cannot be using as keys of generic object type. There is a PR related to this #17. Reproduction typescript playground System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [x] I am willing to submit a PR to fix this issue [x] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

s3xybun · 9mo ago
Structured data for AI agents

Repository: antfu/utils. Description: Collection of common JavaScript / TypeScript utils Stars: 876, Forks: 68. Primary language: TypeScript. Languages: TypeScript (99.5%), JavaScript (0.5%). License: MIT. Latest release: v9.3.0 (10mo ago). Open PRs: 1, open issues: 5. Last activity: 10mo ago. Community health: 85%. Top contributors: antfu, johannschopplich, NamesMT, Wing-9527, LuciNyan, s3xybun, liuyang0826, jbaubree, akinoccc, xiaoxiangmoe and others.

·@ofershap

Replace github.com with gitshow.dev