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

writing.js

v1.1.2

Published

⌨ Writing.js is animation library keyboard typing and keyboard deleting, customizable and easy to implement.

Readme

⌨ Writing Animation JS

Animation example Writing.js

🛠 Instalation

Below are some of the most common ways to include writing.js.

Browser

Script tag

<script src="https://unpkg.com/writing.js"></script>

Node

To include writing.js in Node, first install with npm.

$ npm i writing.js

Babel / ES6

Babel is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively.

import {animationWriting} from 'writing.js';

Browserify / Webpack / ES5

There are several ways to use Browserify and Webpack. For more information on using these tools, please refer to the corresponding project's documention. In the script, including writing.js will usually look like this...

const animationWriting = require('writing.js');

🤔 How to usage?

To use writing.js in your website.

Option 1

  • Create an HTML element to which the animation will be executed and add the attribute wj-words with the words separated with the comma character , which will be animated.
  • Now simply add the javascript in the <body> element of your document.
  • Finally run the animationWriting(selector) function, sending a string with the selector of the element to which you want to run the animation.

Codepen: example option 1

Option 2

  • Create an HTML element to which the animation will be executed.
  • Now simply add the javascript in the <body> element of your document.
  • finally call the function animationWriting(selector, words[]), sending a string with the selector of the element to which you want to run the animation and as a second parameter send an array with the content to animate.
  • It is possible to send a third parameter with an object to modify the animation times or styles of element.
<script>
    animationWriting('#example', [
      'mundo',
      'wêreld',
        ...          
    ], {
        times: {
           writer: 150, // (ms)
           eraser: 150, // (ms)
           read: 1000 // (ms)
        },
        styles : ['color: #fff', 'background: black'] // (Array of strings with declarations of the properties and value.)
    });
</script>

Codepen: example option 2

That is all!

😋 Example

Now some examples, you can see some examples of the implementation and use of the library in the /examples.

  • Create an HTML element to which the animation will be executed and add the attribute wj-words.
<html>
    <head> ... </head>
    <body>
        ...

        <!--
            EN: Element to which the animation with the attribute `wj-words` will be executed.
            ES: Elemento al cual se le va a ejecutar la animación con el atributo `wj-words`.
         -->
        <h2>Hello <span id="example" wj-words="mundo, wêreld, свят, svět, 世界, עולם, विश्व, جهان, Мир">world</span>!</h2>
        
        ...    
    </body>
</html>
  • Add the javascript in the body.
<html>
    <head> ... </head>
    <body>
        ...
       
        <h2>Hello <span id="example" wj-words="mundo, wêreld, свят, svět, 世界, עולם, विश्व, جهان, Мир">world</span>!</h2>
                        
        <!--
            EN: Add library in the `body` of the document.
            ES: Agregar librería en el `body` del documento.
         -->         
        <script src="https://unpkg.com/writing.js"></script>
            
        ...    
    </body>
</html>
  • Run the animationWriting(selector) function.
<html>
    <head> ... </head>
    <body>
        ...      
        <h2>Hello <span id="example" wj-words="mundo, wêreld, свят, svět, 世界, עולם, विश्व, جهان, Мир">world</span>!</h2>                
                   
        <script src="https://unpkg.com/writing.js"></script>
        <script>
            /**
             * @description
             *  EN: This is the only line that we need to make it work it would release it,
             *      we call the function and send as parameter a string with the selector of
             *      the element to which the animation will be executed.
             *  ES: Esta es la única línea que necesitamos para hacer funcionar la liberaría,
             *      llamamos la función y enviamos como parámetro un string con el selector
             *      del elemento al cual se le va a ejecutar la animación.
             */
            animationWriting('#example');
        </script>    
    </body>
</html>

Now just enjoy the magic. 🤓

License 🔥

Copyright © 2020-present Oscar Amado 🧔