Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
metalsmith-medium-data
Advanced tools
Metalsmith plugin to fetch latest user post data from medium.com
Metalsmith plugin to fetch latest user post data from medium.com as metadata for template usage.
$ npm install metalsmith-medium-data
Add an metalsmith-medium-data
entry in metalsmith.json
or pass the plugin to metalsmith.use()
in a JavaScript file.
metalsmith.json
{
"plugins": {
"metalsmith-medium-data": {
"username": "huntie"
}
}
}
JavaScript file
import medium from 'metalsmith-medium-data';
metalsmith.use(medium({
username: 'huntie'
});
The plugin will add a new metadata object on build under the key medium
for use in templates.
Property | Type | Description |
---|---|---|
medium.user | Object | The user profile data. |
medium.posts | Array | The collection of most recent user posts. |
Name | Type | Required | Default | Description |
---|---|---|---|---|
username | String | Yes | null | The Medium account user from which to fetch posts. |
key | String | No | "medium" | The name of the key to set in metadata. |
limit | Number | No | 10 | The maximum number of posts to include. |
If you discover a problem or have a feature request, please create an issue or feel free to fork this repository and make improvements.
FAQs
Metalsmith plugin to fetch latest user post data from medium.com
The npm package metalsmith-medium-data receives a total of 1 weekly downloads. As such, metalsmith-medium-data popularity was classified as not popular.
We found that metalsmith-medium-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.