bloggify-article

1.0.4 • Public • Published

bloggify-article

Version Downloads

The Bloggify article class.

☁️ Installation

# Using npm
npm install --save bloggify-article

# Using yarn
yarn add bloggify-article

📋 Example

const BloggifyArticle = require("bloggify-article");

let home = new BloggifyArticle({
    title: "Hello World!"
  , content: "Hey there!"
  , main_image: "/foo.png"
  , author: "Johnny"
  , id: 10
  , url: "/blog/{id}-{slug}"
});

console.log(home);
// BloggifyArticle {
//   title: 'Hello World!',
//   slug: 'hello-world',
//   url: '/blog/10-hello-world',
//   content: 'Hey there!',
//   raw_content: 'Hey there!',
//   main_image: '/foo.png',
//   id: 10,
//   author: 'Johnny',
//   date: null }

❓ Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. 🐛

📝 Documentation

bloggifyPage(data)

BloggifyArticle The Bloggify article class.

Params

  • Object data: The page data:
    • metadata (Object):
      • id (String): The article id.
      • author (String): The article author.
      • date (String|Date): The article date.
    • id (String): The page id. If provided, has greater priority than the metadata.id.
    • author (String): The page author. If provided, has greater priority than the metadata.author.

Note: The BloggifyArticle is extended from the BloggifyPage class.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💫 Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

  • bloggify-viewer

📜 License

MIT © Bloggify

Package Sidebar

Install

npm i bloggify-article

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

6.87 kB

Total Files

4

Last publish

Collaborators

  • ionicabizau