npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vuemodoro

v1.0.2

Published

Vue component implementing a Pomodoro Timer

Downloads

13

Readme

vuemodoro

SFC Vue component implementing a Pomodoro timer


Vuemodoro is a Vue Single File Component implementing a countdown timer, intended to provide a Pomodoro countdown in your Vue applications. It comes with a set of properties making the component customizable for your needs. For example, you can customize either the duration of the countdown or the labels of the buttons for interacting with the component.
Moreover, you can choose between different styles for your Vuemodoro look and feel. 🍅

Properties

If you need to customize the Pomodoro timer behavior, you can use one of the following optional properties.

| Properties | Default | Description | Type | |----------------|-------------|----------------------------------------------------------------------------------------|------------------| | minutes | 25 | sets the minutes of the countdown | Number | | seconds | 0 | sets the seconds of the countdowm | Number | | pomodoro-label | Pomodoro Timer | adds a descriptive label to the timer container | String | | start-label | Start | adds a descriptive label to the start button of the timer | String | | pause-label | Pause | adds a descriptive label to the pause button of the timer | String | | reset-label | Reset | adds a descriptive label to the reset button of the timer | String | | muted | false | defines if the timer must play a sound when the countdown ends. | Boolean | | theme | dark | defines the styles of the timer. It comes with three different styles. bare, light and dark are the available options. | String |

Installation

You can install Vuemodoro using npm:

npm install --save vuemodoro

Alternatively, you can import vuemodoro via <script> tag in the browser directly, avoiding the NPM installation:

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vuemodoro"></script>

Usage

Once installed, it is easy to use it.

Importing the component

First, you need to import vuemodoro in your files. You can do that in different ways. For example, it can be imported into a build process for use in full-fledged Vue applications:

import Pomodoro from 'vuemodoro';

export default {
  components: {
    Pomodoro,
  },
  // rest of the component
}

Using the component

Once imported, you can use your component as follows:

<Pomodoro/>

Themes

Vuemodoro comes with a theme prop. It allows to modify the look and feel of the component. The available options are:

  • bare, it is a minimal look and feel, intended for customization:
  • light, it is the light theme of Vuemodoro:
  • dark, it is the dark theme of Vuemodoro:

Contributing

This component can be improved both in features and performances. Please, help me in doing it better 🍅