AWK functions in TypeScript
TypeScript implementations of 10 AWK standard library functions across 1 module. Each function is individually importable and tree-shakeable.
builtinWe have 10 AWK functions so far - help us add more
Got a rainy Sunday afternoon and a taste for a porting puzzle?
- Get inspiration from the GNU AWK manual.
- Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.
We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.
Upstream Surface Inventory 10/42 shipped · 29 next 24%
Locutus tracks 1 upstream namespace for AWK and sorts them into what is already shipped, what we still want, what we intentionally keep, and what still needs a decision.
Next
AWK built-ins are mostly pure text and numeric helpers with a good plain-value fit.
andasortasortiatan2bindtextdomaincompldcgettextdcngettextfflushgensubgsubindexisarraylshiftmatchmkboolmktimeorpatsplitrandrshiftsplitsprintfstrftimestrtonumsubsystimetypeofxor
Explicit non-goals (3)
-
closeFile and pipe handle lifecycle is outside Locutus' value-only model. -
srandGlobal RNG seeding mutates ambient runtime state. -
systemShell execution is outside Locutus' portability scope.