bloggify-page

1.0.6 • Public • Published

bloggify-page

Version Downloads

The Bloggify page class.

☁️ Installation

# Using npm 
npm install --save bloggify-page
 
# Using yarn 
yarn add bloggify-page

📋 Example

const BloggifyPage = require("bloggify-page");
 
 
const home = new BloggifyPage({
    title: "Home"
  , content: "Hey there!"
  , metadata: {
        customField: "Hello Mars!"
    }
});
 
console.log(home);
// BloggifyPage {
//   title: 'Home',
//   slug: 'Home',
//   url: '/Home',
//   content: 'Hey there!',
//   customField: 'Hello Mars!',
//   raw_content: 'Hey there!' }

❓ 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)

BloggifyPage The Bloggify page class.

Params

  • Object data: The page data:
    • metadata (Object):
      • title (String): The page title.
      • slug (String): The page slug.
      • url (String): The page url.
      • main_image (String): The recommended image.
    • title (String): The page title. If provided, has greater priority than the metadata.title.
    • slug (String): The page slug. If provided, has greater priority than the metadata.slug.
    • url (String): The page url. If provided, has greater priority than the metadata.url.
    • content (String): The page content.
    • html (String): The page html.
    • markdown (String): The page content.
    • rawContent (String): The page raw content.

Additional keys passed in the metadata or in the main object, they will be merged in the result object.

😋 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
  • bloggify-article

📜 License

MIT © Bloggify

Readme

Keywords

Package Sidebar

Install

npm i bloggify-page

Weekly Downloads

3

Version

1.0.6

License

MIT

Unpacked Size

6.5 kB

Total Files

4

Last publish

Collaborators

  • ionicabizau