简体   繁体   中英

How can I view the source code for the readline module in nodejs?

I've scored the internet for almost an hour, but I can't find the actual github for readline, nor is it in node_modules . I hear that some are in binary, like events.js, but I found a repo for it. I'm trying to read through readline and learn how it works but I cannot find it. Does anyone know where it is?

You can find it in the libs -directory on the official github-repo :

https://github.com/nodejs/node/blob/master/lib/readline.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM