This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Description
I'm using Node 4.4.5. When trying to encrypt or decrypt Node crashes because it's trying to call slice on rl.history which hasn't been defined yet.
C:\Users\benhanna\Git\project\node_modules\config-leaf\index.js:34
rl.history = rl.history.slice(1);
^
TypeError: Cannot read property 'slice' of undefined
at C:\Users\benhanna\Git\project\node_modules\config-leaf\index.js:34:32
at Interface._onLine (readline.js:209:5)
at Interface.<anonymous> (readline.js:341:12)
at Array.forEach (native)
at Interface._normalWrite (readline.js:340:11)
at Socket.ondata (readline.js:87:10)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)