0.0.1 ā¢ Published 2 years ago
webmention-rss-discovery-sender v0.0.1
A simple webmention discovery and sender tool, that reads feed.xml and sends webmentions to the mentioned links of a post
Install
npm install
Add options to the file or page that you want to process the webmentions for.
const options : WebmentionOptions = {
postCount: Number(process.env.WEBMENTION_POST_COUNT) || 1, // Number of posts to process
feedUrl: process.env.WEBMENTION_FEED_URL, // Eg. https://example.com/feed.xml
logFileLocation: process.env.WEBMENTION_LOG_LOCATION, // Default: '/webmention-discovery.log'
domainsToIgnoreString: process.env.WEBMENTION_IGNORED_DOMAINS, // Eg. 'example.com,example.org'
// dryRun: true // Will not actually post webmentions but will do eveyrthing else including discovery and logging
}
And call the function:
const webmentionData = await webmentionDiscovery(options);
Run tests
npm run test
Author
š¤ Matthew Peck-Deloughry matt+npm@deloughry.co.uk (https://deloughry.co.uk)
- Website: https://deloughry.co.uk
- Twitter: @DR_DinoMight
- Github: @DR-DinoMight
Show your support
Give a āļø if this project helped you!
š License
Copyright Ā© 2022 Matthew Peck-Deloughry <matt+npm@deloughry.co.uk> (https://deloughry.co.uk). This project is MIT licensed.
This README was generated with ā¤ļø by readme-md-generator
0.0.1
2 years ago