Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blog-easy-client

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blog-easy-client

A javascript client library for blog-easy which integrates a fully automated blog CMS (content management system) which makes it easy to create and publish blog post

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by1200%
Maintainers
1
Weekly downloads
 
Created
Source

blog-easy-client

blog-easy-client is a javascript client library for blog-easy which enables us to integrates a full automated blog system to a website without having to write any code. It consists of :

A javascript client library for the browser (this repository)

Features


  • It adds a simple yet powerful Blog content management system (cms) to your client side page
  • We can easily add and alter Header, Sub-headers, Paragraphs, Notes, List, images, code-snippets and many more elements
  • It provides a default styling for all the blog elements
  • It enables us to customize the styling of all the elements

A Node.js package (for server)

Features


  • It can automatically upload, update the post sent by its javascript cms client library
  • It provides middlewares for automatic upload, update, search, view all post, view single post, and deletion
  • It enables to choose a databse either mongoDB or mysql to store blog data
  • It creates search engine friendly content

Screen Shots


Preview 1Preview 1Preview 1Preview 1

Installation


npm i blog-easy-client

Initialization


Once you have installed the blog-easy-client library, you can now init the client.

Using CDN

<script src="https://cdn.allkods.in/blog-easy-client-1.0.6.js"></script>

using NPM

import { blogEasy } from 'blog-easy-client'

How to use


blogEasy({
      wrapper: /* The selected div container where all the elements will added */,
      post: /* URL or route where the data will be posted */,
      type: /* can be upload or edit */
    })

Example for uploading

blogEasy({
      wrapper: document.getElementById('container'),
      post: '/blogPost',
      type: 'upload'
    })

Example for editing

blogEasy({
      wrapper: document.getElementById('container'),
      post: '/blogPost',
      type: 'edit'
    })

How to style elements


To style elements you need to link your custom CSS and pass the class name to the elements as follow:

blogEasy({
      wrapper: document.getElementById('container'),
      post: '/blogPost',
      type: 'upload',
      class:{
          header : 'custom_class_name',
          subHeader : 'custom_class_name',
          para : 'custom_class_name',
          h3 : 'custom_class_name',
          h4 : 'custom_class_name',
          h5 : 'custom_class_name',
          h6 : 'custom_class_name',
          list : 'custom_class_name',
          listElem : 'custom_class_name',
          paraSpace : 'custom_class_name',
          note : 'custom_class_name',
          code : 'custom_class_name',
          imageBox : 'custom_class_name',
          coverImage : 'custom_class_name',
          date : 'custom_class_name'
      }
    })

For styling all the text of code, Select all the child element with a *, Example : your_class *{}

How to set up its Automated backends

Read full documentation here -> blog-easy

Missing feature


  • For adding links we have to use dafault html <a> tag ( we will be providing link adding feature soon. )

TO-DO


  • Link adding feature
  • Automatic compression of images
  • Converting the cover image into 2 qualities ( preview and original, to decrease the load time of view while viewing multiple post at a time )
  • Tag adding feature

Keywords

FAQs

Package last updated on 30 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc