Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> web >> node-keypress
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: node-keypress  ]

套件: node-keypress (0.2.1-1)

Make any Node ReadableStream emit "keypress" events

Previous to Node v0.8.x, there was an undocumented "keypress" event that process.stdin would emit when it was a TTY. Some people discovered this hidden gem, and started using it in their own code.

In Node v0.8.x (and above), this "keypress" event does not get emitted by default, but rather only when it is being used in conjunction with the readline (or by extension, the repl) module.

This module is the exact logic from the node pre-v0.8.x releases ripped out into its own module.

Bonus: Now with mouse support!

其他與 node-keypress 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: nodejs (>= 0.6.19~dfsg1-3~)
    evented I/O for V8 javascript

下載 node-keypress

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 6.6 kB49 kB [文件列表]