typo-test
v1.0.1
Published
A package to measure typing speed in words per minute and accuracy.
Downloads
9
Maintainers
Readme
typo-test
test your typing speed [words per minute] and accuracy
Installation:
- for installation run the command-
npm install typo-test
Functions available-
- calculatespeed(examplestring,callback) // for the calculation of speed in words per minute and accuracy.
- 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 }