Socket
Socket
Sign inDemoInstall

hashnode-postcard

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hashnode-postcard

Hashnode blogpost cards for your website


Version published
Maintainers
1
Install size
39.5 kB
Created

Readme

Source

Hashnode Postcard

Hashnode blogpost cards for your website using a single HTML element. import it anywhere you want.

hashnode-postcard demo

install

npm i hashnode-postcard

or

yarn add hashnode-postcard

usage

  • using import statement:
<hashnode-postcard data-username="ayushcodes"></hashnode-postcard>

<script type="module">
  import "hashnode-postcard";
</script>
  • using script tag:
<hashnode-postcard data-username="ayushcodes"></hashnode-postcard>

<script
  src="https://unpkg.com/hashnode-postcard@latest/dist/hashnode-postcard.umd.js"
  type="module"
></script>

demo

api

  • <hashnode-postcard data-username="YOUR_HASHNODE_USERNAME"></hashnode-postcard>

customize

Following data attributes are available to customize the postcard.

data attributedescriptionexamplestype
data-usernameyour hashnode usernameayushcodesrequired
data-widthwidth of the postcard600pxoptional
data-heightheight of the blogposts wrapper500pxoptional
data-cover-imageto show the post cover imagestrueoptional (default is true)
data-followersto show the number of followersfalseoptional (default is true)
data-briefto show the brief description of blogpoststrueoptional (default is true)
data-themeto change the theme of the interfacedefaultoptional (default is default)
available themes
  • default
  • devto
  • hashnode-light-mode
  • dracula
  • nord-light
  • nord-dark

Keywords

FAQs

Last updated on 14 Oct 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc