sindresorhus/decamelize

sindresorhus/decamelize

Releases15
Frequency9 months 1 day
Last Release
Stars244
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow

CVE History

CVEPublishedCVSS v3CVSS v2
5 MEDIUM

Decamelize is used to convert a dash/dot/underscore/space separated string to camelCase. Decamelize 1.1.0 through 1.1.1 uses regular expressions to evaluate a string and takes unescaped separator values, which can be used to create a denial of service attack.