Autowrong introduce keyboard typos into a string.
npm install autowrong
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))
MIT