- Fixed return type of
generate
so that it is consistent with the possibility of returning eitherstring
orstring[]
This is a significant update that transforms this module into an ECMAScript module and changes the name of the exported function. For that reason, we have updated the major version number.
- Converted default export to named export (
generate
) to generate random words. - Adds
count
named export to count number of words. - Thanks to prateek-budhiraja for these updates.
- Addition of
minLength
option. - Code update to ES6 Syntax.
- Thanks to Nellfs for these updates.
- Adds new
seed
option. Thanks to Nathan Klingensmith.
- Fixes misspelling of
separator
in typings. Thanks to Andrei Gec for the correction.
- Adds typescript typings. Thanks to Tim Kennedy for this contribution.
- Updates mocha to v9.
- Use
var
in a small amount of newer code that usedlet
, to match ES5 legacy support status of the rest of the module. We should probably decide on a strategy for moving this module to ES6, but there is no urgency.
- Addition of
wordsPerString
,separator
andformat
options. Thanks to Matteo Veraldi.
-
Addition of
maxLength
option, thanks to Scoombe. -
Since this module has achieved considerable use, has good test coverage and has had no bug reports, we've declared version 1.0.0 stable. We will follow the semver standard from here on out.
Initial release.