|
const MAX_STRING_LENGTH = 10000 |
|
const MAX_ARRAY_LENGTH = 10000 |
Nowhere in the documentation (but, we do say so in the tests), what will happen if either length exceeds the internal limit. This is a great documentation opportunity in the README, but it may also be worth being explicit on throwing an error in either case rather than just returning an empty string which may not be the most user-friendly output to receive, unless the client is comfortable reading through the source.
str-gen/index.js
Lines 14 to 15 in e411321
Nowhere in the documentation (but, we do say so in the tests), what will happen if either length exceeds the internal limit. This is a great documentation opportunity in the README, but it may also be worth being explicit on throwing an error in either case rather than just returning an empty string which may not be the most user-friendly output to receive, unless the client is comfortable reading through the source.