We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b969f3 commit 1b1ad96Copy full SHA for 1b1ad96
lib/index.js
@@ -39,14 +39,14 @@ piano.draw().on('end', () => {
39
if (err && err.code !== 'ENOENT') {
40
return console.error(err)
41
} else if (err) {
42
- return fs.writeFile(err.path, '', 0, 0)
+ return fs.writeFileSync(err.path, '')
43
}
44
data.toString().split('\n').reverse().filter(line => line.trim()).map(line => replServer.history.push(line))
45
})
46
47
// append history on exit
48
replServer.on('exit', () => {
49
- fs.appendFile(historyFile, replServer.lines.filter(l => l.replace(/\n/,'').length).join('\n') + '\n')
+ fs.appendFileSync(historyFile, replServer.lines.filter(l => l.replace(/\n/,'').length).join('\n') + '\n')
50
51
52
replServer.defineCommand('keyboard', {
0 commit comments