🚀 snaputils v1.8.0 — 95+ utilities across 14 categories #1
harshyadavDeveloper
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone! 👋
snaputils v1.8.0 is out with even more utilities!
What's new in v1.8.0
🔒 Security
generateOTP(length?)— generate numeric OTPsencryptString(str, key)— simple string encryptiondecryptString(str, key)— simple string decryption🎨 Color
generateRandomColor()— random hex colorgetContrastColor(hex)— black or white for best contrasthexToHsl(hex)— convert hex to HSLhslToHex(h, s, l)— convert HSL to hex📐 Math
percentage(value, total)— calculate percentagelerp(start, end, t)— linear interpolationdegreesToRadians(deg)— degrees to radiansradiansToDegrees(rad)— radians to degrees🧵 String
generatePassword(length?)— generate strong passwordsinitials(name)— get initials from a namepluralize(word, count, plural?)— pluralize wordsInstallation
```bash
npm install @dungeonmaster/snaputils@latest
```
Links
Happy coding! 🚀
Beta Was this translation helpful? Give feedback.
All reactions