Skip to content
Embed a list of your most recent DEV posts with this tiny library πŸ’Œ
HTML JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
LICENSE Initial commit Apr 6, 2019
README.md
index.js

README.md

Embed Your Latest DEV Posts Anywhere!

A tiny library for embedding your latest DEV posts, sorted by popularity. Explainer post here!


function createFeed(elem, username, numberOfPosts = 5)

Creates a feed of DEV posts.

  • Parameters:
    • elem β€” Element β€” Place list of posts inside this element.
    • username β€” string β€” DEV username, e.g. 'ben'.
    • numberOfPosts β€” number β€” Number of posts to list.

Generates HTML that looks like this:

<div class="example">
  <ul class="dev-feed-list">
    <li class="dev-feed-item">
      <a href="https://dev.to/devteam/dev-community-is-open-sourcing-its-performance-metrics-via-skylight-221m">
        DEV Community Is Open-Sourcing Its Performance Metrics via Skylight
      </a>
    </li>
  </ul>
</div>

Use .dev-feed-list to style the list and .dev-feed-item to style the items.


Accepting PRs/issues πŸ‘

You can’t perform that action at this time.