About Utilities
Standalone utility functions
Browse the snippets below to find the utilities implementation you need for your NestJS project.
All Utilities Snippets
Pagination Helpers
Offset and cursor pagination
- Offset pagination DTO
- Cursor pagination DTO
- Prisma helpers
Slug Generator
URL-safe slug generation
- Slugify integration
- Unique slugs
- Timestamp slugs
Password Utilities
Argon2 password hashing
- Argon2id hashing
- OWASP configuration
- Strength checking
Crypto Utilities
Encryption and token utilities
- AES-256-GCM encryption
- HMAC generation
- Token generation
How to Use
Install any snippet using the Hanma CLI:
npx hanma add --framework nest
For example, to install the first snippet:
npx hanma add pagination --framework nest