read-and-return-callback (npm): this package will give you ability of read from command line and done it on your call back
Keywords: cin|and|cout|with|callback