module.exports = read var buffer = "" , tty = require("tty") , StringDecoder = require("string_decoder").StringDecoder function read (opts, cb) { if (!cb) cb = opts, opts = {} var p = opts.prompt || "" , def = opts.default , silent = opts.silent , timeout = opts.timeout , num = opts.num || null , delim = opts.delim || "\n" if (p && def) p += "("+(silent ? "