readline.js 1.1 KB

12345678910111213141516
  1. var readline = require("readline");
  2. var promisify = require("./_promisify.js");
  3. var bind = function(c, f) { return f && f.bind(c); };
  4. Object.defineProperties(module.exports, {
  5. Interface: { enumerable: true, value: readline.Interface },
  6. clearLine: { enumerable: true, value: bind(readline, readline.clearLine) },
  7. clearScreenDown: { enumerable: true, value: bind(readline, readline.clearScreenDown) },
  8. codePointAt: { enumerable: true, value: bind(readline, readline.codePointAt) },
  9. createInterface: { enumerable: true, value: bind(readline, readline.createInterface) },
  10. cursorTo: { enumerable: true, value: bind(readline, readline.cursorTo) },
  11. emitKeypressEvents: { enumerable: true, value: bind(readline, readline.emitKeypressEvents) },
  12. getStringWidth: { enumerable: true, value: bind(readline, readline.getStringWidth) },
  13. isFullWidthCodePoint: { enumerable: true, value: bind(readline, readline.isFullWidthCodePoint) },
  14. moveCursor: { enumerable: true, value: bind(readline, readline.moveCursor) },
  15. stripVTControlCharacters: { enumerable: true, value: bind(readline, readline.stripVTControlCharacters) },
  16. });