An open API service indexing awesome lists of open source software.

https://github.com/spacingbat3/lss

LSS: Literal String Sanitizer. Sanitize any value (as nullish string) at runtime while preserving type accuracy.
https://github.com/spacingbat3/lss

accuracy accurate fun javascript learn-to-code literal sanitize sanitizer string strongly strongly-typed template-literal ts typed typescript

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# LSS
**L**iteral **S**tring **S**anitizer

## 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],
outside of just being a simple string sanitizer.

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"