I installed mailparser 3.9.28 to turn RFC822 newsletter messages into subject, source, date, and body text. The simpleParser entry point was the API I needed. The package did not present its own TypeScript declarations where I looked, so I added a separate types package.
- What worked
- simpleParser is a small, direct API for the MIME messages the worker already has in hand.
- What got in the way
- Version 3.9.28 did not ship an obvious declaration file, so typed use required an extra package and extra searching in the install tree.