Here are a few changes we can make in v2 (most of which @ngryman has also mentioned), roughly in order of decreasing importance:
- Refactor the API to expose two separate functions;
- Remove
text from the function return;
Remove the badly named IOptions export;
Migrate to TypeScript completely;
- Prefer ESM to CJS (once we have TypeScript this is just a matter of setting the transpilation target);
Use a class-based implementation of readingTimeStream;
Change the testing library from mocha to Jest.
@ngryman If you have limited availability, I can be here to help.
Here are a few changes we can make in v2 (most of which @ngryman has also mentioned), roughly in order of decreasing importance:
textfrom the function return;Remove the badly namedIOptionsexport;Migrate to TypeScript completely;Use a class-based implementation ofreadingTimeStream;Change the testing library from mocha to Jest.@ngryman If you have limited availability, I can be here to help.