typo-test

1.0.1 • Public • Published

typo-test

test your typing speed [words per minute] and accuracy

Installation:

  • for installation run the command-
    npm install typo-test

Functions available-

  1. calculatespeed(examplestring,callback) // for the calculation of speed in words per minute and accuracy.
  2. randomstring() // returns the random strings.

Usage-

calculatespeed()

  • program
    const speed = require('typo-test');

    speed.calculatespeed("hi buddy how are you what are u doing",(err,out)=>{
        console.log(out);
    })
  • output
    Type this: "hi buddy how are you what are u doing"

    hi buddw how are you what are u doung // this will typed by user

      { accuracy: 77.779, wordsPerMinute: 28 }

randomstring()

  • program
    const speed = require('typo-test');

    speed.calculatespeed(speed.randomstring(),(err,out)=>{
        console.log(out);
    })
  • output
    Type this: "Software development involves not just writing code but also understanding user needs and creating solutions that make a difference."

    softwaree development involves not just writing code but also understanding user needs and creating solution that make a difference

    { accuracy: 84.217, wordsPerMinute: 28 }

Package Sidebar

Install

npm i typo-test

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

6.66 kB

Total Files

6

Last publish

Collaborators

  • suraj_chandra