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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@daniel-ordonez/vue-auto-typing

v0.1.2

Published

Vuejs component for auto typing your text.

Downloads

9

Readme

Vue Auto Typing

Vuejs component for auto typing your text.

npm version

auto typing text

Table of contents

Installation

NPM

npm i daniel-ordonez@vue-auto-typing

Register the component inside your Vue file

// Insde the <script> of your .vue file
import AutoTyping from 'VueAutoTyping'
export default{
 components:{
  AutoTyping
 }
}

Client side

Add Vue and VueAutoTyping scripts

<script src="https://unpkg.com/vue"></script>
<script src="./VueAutoTyping.umd.js"></script>
<link rel="stylesheet" href="./VueAutoTyping.css">

Register the auto-typing component

new Vue({
  components: {
    autoTyping: VueAutoTyping
  }
}).$mount('#app')

VueAutoTyping.css

The stylesheet contains only the necessary css for displaying the blinking cursor and it's completely optional, just be aware that if not included the cursor won't show unless you provide your own css.

.auto-typing--cursor::after{
    content: attr(data-cursor);
    display: inline;
    -webkit-animation: cursor-blink 0.7s infinite;
    -moz-animation: cursor-blink 0.7s infinite;
    animation: cursor-blink 0.7s infinite;
}
@keyframes cursor-blink {
    from{
        opacity: 1;
    }
    50%{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

Usage

 <auto-typing>My text</auto-typing>

Props

| Name | Type | Default | Description | |----------|---------|-----------|-------------| |auto |Boolean |true |If false, need to call start() to start the typing. |delay |Number |0 |Time in ms after the component is mounted and before start typing| |speed |Number |250 |Time in ms before typing the next character| |variance |Number |50 |Time in ms it can varies between typing the next character| |mode |String |"human" |If human, the time between each character is speed + (variance * random). If linear the time between each character is equals to speed| |split |Boolean |false |If true, each character is wrapped around an individual span tag| |readtime |Number |1000 |The time in ms before start typing the next string. See typing multiple strings| |cursor |String || |The cursor displayed when typing at the end| |keepCursor|Boolean |false |if false the cursor is hidden when then typing ends, otherwise it keeps blinking at the end of the text|

Typing multiple strings

A few considerations first regarding the text inserted between the component tags:

  • It always be written first
  • If nothing is inside the tags when the component mounts nothing will be written, unless you add it by the push function.

Think of push() the same as with Arrays

<auto-typing>This is first</auto-typing>
//assume the var autoTyping references your component's object
autoTyping.push("This is second");
autoTyping.push("This is third");

Customize

  • Clone this repository
  • Make changes to src/components/VueAutoTyping.vue
  • From source directory execute: npm run build-lib

Support

Please open an issue for support.

Be aware that some features may be under development

Contributing

  1. Please check whether another person has raised a pull request for same issue before creating one.
  2. Please check issues created before requesting for a feature.
  3. Open a pull request explaining what changes it brings.
  4. Add references where applicable.

License

MIT license

Buy me a coffee

Yay! 🎉 You reached the end.