GitHunt
SP

LSS: Literal String Sanitizer. Sanitize any value (as nullish string) at runtime while preserving type accuracy.

LSS

Literal String Sanitizer

About

Sanitize any value (as nullish string) at runtime while preserving type accuracy.
Clearly made for fun and to learn advanced operations on template literals,
outside of just being a simple string sanitizer.

Mostly documented using TSDoc within the source code.

Available now on NPM!

Languages

TypeScript100.0%

Contributors

ISC License
Created January 16, 2023
Updated January 3, 2025