An open API service indexing awesome lists of open source software.

https://github.com/healeycodes/embed-dev-posts

Embed a list of your most recent DEV posts with this tiny library 💌
https://github.com/healeycodes/embed-dev-posts

Last synced: 11 months ago
JSON representation

Embed a list of your most recent DEV posts with this tiny library 💌

Awesome Lists containing this project

README

          

# Embed Your Latest DEV Posts Anywhere!

A tiny library for embedding your latest DEV posts, sorted by popularity. Explainer post [here](https://dev.to/healeycodes/embed-your-latest-dev-posts-anywhere-lj9)!


#### `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:

```html


```

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


Accepting PRs/issues 👍