0.0.16 • Published 11 months ago
@slekup/utils v0.0.16
Slekup Utils
A collection of utility functions and classes to help optimize development.
This is mostly an internal package I use for my projects, but anyone is free to use it. This README will cover most of the utilities available in this package, but for more information on how to use them, you can refer to the inline tsdoc comments.
Installation
npm install @slekup/utils
Functions
Function | Description |
---|---|
ensureDirectories | Ensures that arrays of directories exist or are created |
ordinalNumber | Adds the ordinal suffix to a number |
splitArray | Split an array into chunk |
stripIndents | Removes the indents from a string |
verifyEnvironment | Verifies that the environment variables are set are are the right type |
chance | Returns a random boolean based on a chance (0 - 100) |
Classes
Class | Description |
---|