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.
- Host: GitHub
- URL: https://github.com/spacingbat3/lss
- Owner: SpacingBat3
- License: isc
- Created: 2023-01-16T19:55:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-03T00:02:14.000Z (5 months ago)
- Last Synced: 2025-04-15T15:03:04.109Z (about 2 months ago)
- Topics: accuracy, accurate, fun, javascript, learn-to-code, literal, sanitize, sanitizer, string, strongly, strongly-typed, template-literal, ts, typed, typescript
- Language: TypeScript
- Homepage: https://spacingbat3.github.io/lss/
- Size: 36.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"