Skip to content

pwrstudio/autowrong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Synopsis

Autowrong introduce keyboard typos into a string.

Install

npm install autowrong

Use

const autowrong = require('autowrong')
const string = 'The quick brown fox jumps over the lazy dog'
// Probability of typos occuring:
// adjacent: accidentally hitting adjacent QWERTY key
// double: hitting the same key twice
// order: hitting keys in wrong order
const options = {adjacent: 0.05, double: 0.05, order: 0.05}
console.log(autowrong(string, options))

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published