Gathering detailed insights and metrics for @karmaniverous/string-utilities
Gathering detailed insights and metrics for @karmaniverous/string-utilities
Handy tagged template functions & other string utilities.
npm install @karmaniverous/string-utilities
Typescript
Module System
Node Version
NPM Version
71.9
Supply Chain
82.4
Quality
79.9
Maintenance
100
Vulnerability
100
License
TypeScript (91.95%)
JavaScript (8.05%)
Total Downloads
944
Last Day
3
Last Week
6
Last Month
28
Last Year
944
1 Stars
55 Commits
1 Watching
7 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.2.1
Package Id
@karmaniverous/string-utilities@0.2.1
Unpacked Size
27.21 kB
Size
4.51 kB
File Count
23
NPM Version
10.2.4
Node Version
20.11.1
Publised On
05 Sept 2024
Cumulative downloads
Total Downloads
Last day
200%
3
Compared to previous day
Last week
500%
6
Compared to previous week
Last month
47.4%
28
Compared to previous month
Last year
0%
944
Compared to previous year
38
Handy tagged templates & other string utilities.
To install:
1npm i @karmaniverous/string-utilities
Contents:
Types
Stringifiable
- Represents any value with a toString
method.
stringifiableZodSchema
- Zod schema representing Stringifiable type.
isStringifiable
- Returns true
when value has toString
method.
Transformations
normstr
- Normalize a string by converting diacriticals to base characters, removing non-word characters, and converting to lower case. Non-strings return undefined.Tagged Template Functions
Non-stringifiable to Empty String (n2e
) - Replaces expressions without toString
property with empty strings.
Some Non-stringifiable to Empty String (sn2e
) - Returns empty string when any expression has no toString
property.
Some Non-stringifiable to Null (sn2n
) - Returns null
when any expression has no toString
property.
Some Non-stringifiable to Undefined (sn2u
) - Returns undefined
when any expression has no toString
property.
Higher-Order Functions
Non-stringifiable to Default (n2d
) - Returns tagged template function that replaces any expression that has no toString
property with a default value.
Some Non-stringifiable to Default (sn2d
) - Returns tagged template function that returns a default value when any expression has no toString
property.
Built for you with ❤️ on Bali! Find more great tools & templates on my GitHub Profile.
No vulnerabilities found.
No security vulnerabilities found.