npm i @ceol/medium-feed-parser
# or yarn add @ceol/medium-feed-parser
const {parse} = require('medium-feed-parser');
(async function() {
let out = await parse('kirito');
console.dir(out);
})();
parse()
- argumet is profile (username) as parameter (will be formatted as"https://medium.com/@{profile}/feed"
).parseXML()
- argument is data that is used after fetching from the source to be parsed.