Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

This package has been deprecated

Author message:

useless

ryanaghdam-content

1.3.1 • Public • Published

ryanaghdam-content

A package that provides the content for ryanaghdam.com.

Domain

Post

A Post is an Object that has:

  • a content property which contains render HTML markup for the post.

  • a metadata property which contains information related to the post. The metadata object should have at least a title and date property.

API

getBySlug(String) -> Post

Returns a post that matches the given slug. An error is thrown if a matching post is not found.

getAllPosts() -> [Post]

Returns all Posts, sorted by date (descending).

Keywords

none

install

npm i ryanaghdam-content

Downloadsweekly downloads

8

version

1.3.1

license

none

last publish

collaborators

  • avatar
Report a vulnerability