Package Exports
- stuffs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stuffs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
STUFFS
Some useful stuffs packed to here.
Utilities
- getFileExtension
- hexToRgb
- intToRgba
- randomFloat
- randomInteger
- randomPick
- randomString
- rejectAfter
- rgbaToInt
- rgbToHex
- sleep
Update history
0.1.0
- Code cleaned.
- You can now only get only parts you need. (eg.
require('stuffs/lib/randomString')) - Better readme.
randomString(length?, map?)added.- Some maps added for random string.
randomString.STRING_MAP_HEXrandomString.STRING_MAP_NUMERICrandomString.STRING_MAP_ALPHABET_LOWERrandomString.STRING_MAP_ALPHABET_UPPERrandomString.STRING_MAP_ALPHANUMERIC
- Some maps added for random string.
rejectAfter(ms, reason?)added.- Throws an error after some time.