- Added input validation for numeric parameter (0 < n <= 1000)
- Modernised JavaScript:
- Updated all var declarations to const/let
- Converted CommonJS to ES Modules
- Fixed process.exit() usage
- Updated ESLint ecmaVersion to 2022
- Added optional chaining, nullish coalescing, and template literals
- Replaced getRandomInt() with randomRange()
- Improved error handling in catch blocks
- Extract magic numbers to named constants
- Updated package.json engines.node and check bin value
- Updated Dependencies
- Changed all
nsfreferences tonsfwas it should have been and it annoyed me a little. The old--nswswitch still works, as does--nsfw. - Updated
debugto version4.3.4.
- Updated
debugto version4.3.3.
- Updated
chalkto version4.1.2. - Updated
debugto version4.3.2.
- Updated
pretty-errorto version3.0.4.
- Updated
css-whatpackage deep in the dependency tree to mitigate CVE-2021-33587.
- Added
--nswmode which generates Not Safe for Work code names.
- Updated dependency
chalkto version4.1.1.
- Added
CHANGELOG.md. - Added Required Node Version
badge to
README.md. - Added link to
CHANGELOG.mdtoREADME.md.
- Fixed a bug with random number generation which could cause
undefinedto be returned due to out-of-bounds array access. - Updated dependency
pretty-errorto version3.0.3. - Updated dependency
supports-colorto version8.1.1. - Removed broken Size badge from
README.md.