rss-to-activitypub
rss-to-activitypub copied to clipboard
ESM updates
This PR attempts to bring the project up to speed with modern node.js:
- Updates packages to use ESM style
import
andexport
rather thanrequire()
andmodule.exports
(forced in part because dependency parse-favicon refused to work using CommonJS). - Replaces deprecated request package with calls to native
fetch()
. - Updates other packages to latest versions.
- Adds an
.nvmrc
to nudge users toward node.js LTS v20. - Updates package.json
engines
tov18.0.0
in order to getfetch()
without needing to pass an experimental argument. - Switches
config.json
toconfig.js
to make it work more easily with ESM imports.