Full rewrite of the old original litero project in TypeScript. It's not really terribly good TS, but it's mostly a project for me and I doubt it'll receive much attention. It's nowhere near fully tested and doesn't even have commit hooks or push hooks.
Some improvements:
- Can target the old classic layout either by using the classic subdomain in the URL or by a command-line argument - preserves the original project's Cheerio selectors for parsing the page
- Updated selectors to reflect the newer modern version.
- Added markdown output
- Added ability to reference a custom template for use
- Added ability to retrieve a series as a single file via a new CLI argument
-s, --series - Added ability to retrieve the international pages (series should work, too!)
Things to do in the future:
- Extract each selector into a named function so that when the page inevitably changes it's easier to find all of the needed selectors to update them.
- Add full tests (will probably require some significant refactor of these classes)
- Add linter and commit hooks