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

@linusborg/vue-ko-fi-button

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@linusborg/vue-ko-fi-button

A Ko-fi button Vue component

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

vue-ko-fi-button

A Vue component to add the KoFi Button to your Vue apps.

About

I'm not working for www.ko-fi.com or am in any other way affiliated with them except for using their service.

I created this component because I wanted to implement their button widget into my Vue apps, but found it difficult to do so.

So I'm using their CSS with very little tweaks, and of course link to their images. I hope that's cool with them.

Install

npm i -D vue-ko-fi-button
# or
yarn add -D vue-ko-fi-button

ES5/ES6

  • The package's main export is a .vue File containing ES5 code (IE-compatible).
  • If you want to use the ES6-version directly, import from ''vue-ko-fi-button/es6/KoFiButton.vue'`

In the browser

The package also comes with a UMD build if you really need to include it with a <script> element.

<script src="https://unpkg.com/vue-ko-fi-button/umd/VueKoFiButton.umd.min.js"></script>

The component will be avaliable as window.VueKoFiButton.

Usage

<template>
  <KoFiButton 
    username="linusborg"
    color="#CCC"
    :title="Can I haz coffee plz?"
  />
</template>
<script>
import KoFiButton from 'vue-ko-fi-button'
export default {
  name: 'YourComponent',
  components: {
    KoFiButton
  }
}

Development

Boring details about this project's dev setup

Setup

yarn install

Compiles and hot-reloads for demo/development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Run unit tests

yarn test:unit

Releae a new version


yarn relase

Customize configuration

See Configuration Reference.

Keywords

FAQs

Package last updated on 14 Apr 2019

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