
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
medium-article-api
Advanced tools
A npm package designed to fetch user details and articles from Medium. This package provides a simple and efficient way to easily integrate Medium content into their applications.
You can install this package using npm or yarn.
npm i medium-article-api
yarn add medium-article-api
Here is a simple example to get you started:
import { MediumArticles } from 'medium-article-api';
const mediumArticles = MediumArticles();
const username = '<your-medium-username>';
mediumArticles.getProfileUrl(username).then( (result) => console.log('The profile url is ', result));
// https://medium.com/feed/@engrmuhammadusman108}
| Function | Arguments | Output |
|---|---|---|
| getData | username: string | string |
| getProfileUrl | username: string | string |
| getProfileTitle | username: string | string |
| getProfileAuthor | username: string | string |
| getProfileDescription | username: string | string |
| getProfileImageUrl | username: string | string |
| getLatestArticleTitle | username: string | array[string] |
| getLatestArticlePublicationDate | username: string | string |
| getLatestArticleUrl | username: string | string |
| getLatestArticleDescription | username: string | html |
| getLatestArticle | username: string | object |
| getLatestArticlesTitle | username: string | string |
To compile the TypeScript files to JavaScript, run:
npm run build
To run tests, use:
npm run test
This package uses a tsconfig.json file for TypeScript configuration. Here is an example:
{
"compilerOptions": {
"target": "ES6",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "./dist"
},
}
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
NPM package for using medium articles api
The npm package medium-article-api receives a total of 8 weekly downloads. As such, medium-article-api popularity was classified as not popular.
We found that medium-article-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.