Lua's string library in TypeScript
We have 16 Lua functions so far - help us add more
Got a rainy Sunday afternoon and a taste for a porting puzzle?
- Get inspiration from the Lua 5.4 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 7/17 shipped • 5 next 41%
Namespace-level inventory for Lua 5.4: what we already ship, what we may still want,
and what we intentionally skip or keep.
string
58%
shipped
7/12 shipped
5 next
5 explicit non-goals
Next
Lua string helpers are strong plain-value portability targets.
bytecharfindformatmatch
Explicit non-goals (5)
-
dumpBytecode dumping is not a good security or portability target. -
gmatchIterator-returning APIs do not fit Locutus' plain-value model. -
packBinary packing semantics do not map cleanly to JS plain values. -
packsizeBinary packing semantics do not map cleanly to JS plain values. -
unpackBinary packing semantics do not map cleanly to JS plain values.