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

@chayson/type-it

v2.1.0

Published

A JavaScript Library for creating dynamic typing effects.

Readme

Type-It

Type-It is a lightweight JavaScript library that allows you to create dynamic typing effects for your website. With a customizable typing and deleting animation, you can add interactive and engaging text effects with minimal setup.

Features

  • Type and delete text in a smooth animation.
  • Supports multiple words with customizable delays.
  • Color cycling support for text as it types.
  • Option to loop the typing effect.
  • Easily configurable via data-* attributes on HTML elements.

Installation

You can install Type-It via npm:

npm install @chayson/type-it

Alternatively, you can include it directly in your project using a <script> tag.

<script src="path/to/type-it.esm.js"></script>

Usage

1. HTML Setup

To use TypeIt, simply add the class typeit to the elements where you want the typing effect to appear. You can also customize the typing speed, colors, and delay using the data-* attributes.

Here's an example:

<div id="type1" class="typeit"
    data-words="Hello world!,Welcome to Type-It,Enjoy typing effects"
    data-delay="150"
    data-loop="true"
    data-colors="red,blue,green">
</div>

2. Adding a Cursor

You can add a blinking cursor by including a div with the cursor class and associating it with the typing element using the data-owner attribute.

<div id="cursor1" class="cursor" data-owner="type1"></div>

3. Start/Stop Typing Dynamically

You can control the typing effect using start and stop buttons. The buttons will interact with the typing effect using the data-owner attribute, referencing the element that owns the typing effect.

<button class="typeit-start" data-owner="type1">Start Typing</button>
<button class="typeit-stop" data-owner="type1">Stop Typing</button>

4. Customizing the TypeIt Effect

You can customize the typing effect by using various data-* attributes on the HTML element:

  • data-words: A comma-separated list of words to type.
  • data-delay: Delay between typing characters (in milliseconds).
  • data-loop: Set to true to make the typing loop.
  • data-colors: Comma-separated list of colors to cycle through as typing occurs.
  • data-cursordisplay: The cursor character (e.g., _, |, etc.).
  • data-deletedelay: Delay before deleting the word.

Example:

<div id="type1" class="typeit"
    data-words="Type It,JavaScript,Dynamic Effects"
    data-delay="150"
    data-loop="true"
    data-colors="red,blue,green"
    data-cursordisplay="_"
    data-deletedelay="800">
</div>

5. Initializing TypeIt

If you are using the npm package and importing the script into your JavaScript file, you can initialize TypeIt with the following:

import { TypeSetup } from 'type-it'

document.addEventListener('DOMContentLoaded', () => {
  TypeSetup();
});

This ensures that the typing effects are initialized after the page content has loaded.

Credits

This project was inspired by and based on the following resources:

Thank you to the creator(s) of these resources for providing the foundation for this project!

Contributing

Feel free to submit issues and pull requests for improvements. Contributions are welcome!

License

TypeIt is open source and available under the MIT License.