UNPKG

@spacingbat3/lss

Version:

LSS: Literal String Sanitizer – sanitizes string based on specific inputs and tries to guess the accurate type (in TypeScript/Typed JS).

20 lines (12 loc) 620 B
<div align=center> # LSS **L**iteral **S**tring **S**anitizer </div> ## 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][ts1]. Mostly documented using [TSDoc] within the source code. **[Available now on NPM!][npm]** [TSDoc]: https://tsdoc.org/ "TSDoc: Homepage" [ts1]: https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html "TypeScript: Documentation – Template Literal Types" [npm]: https://www.npmjs.com/package/@spacingbat3/lss "@spacingbat3/lss – NPM repository page"