Socket
Socket
Sign inDemoInstall

applause-button

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    applause-button

A zero-configuration button for adding applause / claps / kudos to web pages and blog-posts


Version published
Weekly downloads
1.1K
increased by15.2%
Maintainers
1
Install size
316 kB
Created
Weekly downloads
 

Readme

Source

Applause Button

Backers on Open Collective Sponsors on Open Collective

A zero-configuration button for adding applause / claps / kudos to web pages and blog-posts.

Minimal example

The applause button is a custom element that can be added directly to the page. Here is a minimal example:

<head>
  <!-- add the button style & script -->
  <link rel="stylesheet" href="dist/applause-button.css" />
  <script src="dist/applause-button.js"></script>
</head>
<body>
  <!-- add the button! -->
  <applause-button style="width: 58px; height: 58px;"/>
</body>

The above will render an applause button, persisting claps and clap counts.

For more information, visit the project website;

Development

Clone this repo and install dependencies via yarn:

$ yarn

Use yarn test to run the test suite. These use Jest as the test runner, and Puppeteer as a headless Chrome instance, allowing the applause button to make API requests (with appropriate responses faked within the test code).

You can build project and start watching the src folder for changes as follows:

$ yarn run watch

Run yarn test:server to start a dev server in another process.

Releases

All releases are created automatically via semantic release running on Travis.

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

FAQs

Last updated on 11 Jan 2021

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