日本語のタイピングを簡単に再現 🇯🇵
npm install ghost-writer
import ghostWriter from 'ghost-writer';
const struct = [{
i: 'anoiーhatoーvono',
o: 'あのイーハトーヴォの'
}, {
i: 'sukitoottakaze',
o: 'すきとおった風、'
}, {
i: 'natsudemo',
o: '夏でも'
}, {
i: 'sokoni',
o: '底に'
}, {
i: 'tsumetasawomotsu',
o: '冷たさをもつ'
}, {
i: 'aoisora',
o: '青いそら'
}];
const writer = ghostWriter(struct);
let text = '';
writer(t => text = t, 100);
import ghostWriter from 'ghost-writer';
const writer = ghostWriter('あのイーハトーヴォのすきとおった風');
let text = '';
writer(t => text = t);
import ghostWriter from 'ghost-writer';
const struct = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit';
const writer = ghostWriter(struct);
let text = '';
writer(t => text = t, 50);