Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
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 0 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.