Skip to content

reading-time v2 #38

@Josh-Cena

Description

@Josh-Cena

Here are a few changes we can make in v2 (most of which @ngryman has also mentioned), roughly in order of decreasing importance:

  1. Refactor the API to expose two separate functions;
  2. Remove text from the function return;
  3. Remove the badly named IOptions export;
  4. Migrate to TypeScript completely;
  5. Prefer ESM to CJS (once we have TypeScript this is just a matter of setting the transpilation target);
  6. Use a class-based implementation of readingTimeStream;
  7. Change the testing library from mocha to Jest.

@ngryman If you have limited availability, I can be here to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions