
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.