Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metalsmith-medium-data

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-medium-data

Metalsmith plugin to fetch latest user post data from medium.com

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Metalsmith Medium data

Metalsmith plugin to fetch latest user post data from medium.com as metadata for template usage.

Installation

$ npm install metalsmith-medium-data

Usage

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.

PropertyTypeDescription
medium.userObjectThe user profile data.
medium.postsArrayThe collection of most recent user posts.

Options

NameTypeRequiredDefaultDescription
usernameStringYesnullThe Medium account user from which to fetch posts.
keyStringNo"medium"The name of the key to set in metadata.
limitNumberNo10The maximum number of posts to include.

Contributing

If you discover a problem or have a feature request, please create an issue or feel free to fork this repository and make improvements.

Keywords

FAQs

Package last updated on 01 Apr 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc