[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-759801-105":3,"detail-sidebar-cat-0-en-105":79,"doc-detail-759801-en":129,"doc-similar-759801":229},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","the-nodejs-handbook-introduction-to-nodejs","The Node.js Handbook - Introduction to Node.js","","A practical introduction to Node.js for developers who want to build server-side JavaScript applications efficiently. Covers Node.js as a runtime on the V8 engine, its open-source and cross-platform nature, and the core advantages of speed, simplicity, and a JavaScript-first workflow. Explains the asynchronous, non-blocking model and how it enables scalable handling of concurrent connections. Includes foundational guidance on command-line usage, setup concepts, and related tooling such as npm.",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/the-nodejs-handbook-introduction-to-nodejs/759801/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/the-nodejs-handbook-introduction-to-nodejs/759801.png","ImageObject",300,407,{"name":42,"@type":43},"The weather in my hometown","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":51,"interactionType":52,"userInteractionCount":22},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"What is Node.js and what is it built on?","Question",{"text":61,"@type":62},"Node.js is a server-side JavaScript runtime environment. It runs on top of the Google Chrome V8 JavaScript engine.","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"Why is Node.js considered fast and efficient?",{"text":66,"@type":62},"Node.js can execute JavaScript quickly due to non-blocking design and the performance focus of the V8 engine. The book highlights speed compared with blocking and interpreted approaches.",{"name":68,"@type":59,"acceptedAnswer":69},"How does Node.js support asynchronous programming?",{"text":70,"@type":62},"Node.js uses a single-threaded, event-driven model with callbacks so expensive operations run without blocking the execution of the rest of the program.","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},759801,1795895118,{"code":4,"msg":80,"data":81},"success",[82,86,90,94,99,103,108,113,118,121,125],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":83,"show_sort_weight":84,"slug":85},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":87,"show_sort_weight":88,"slug":89},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":91,"show_sort_weight":92,"slug":93},"Exam",70,"exam",{"id":95,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},5,"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":101,"slug":102},6,50,"technology",{"id":104,"doc_module":4,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},7,"Healthcare",40,"healthcare",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},8,"Research & Report",30,"research-report",{"id":114,"doc_module":4,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":95,"slug":128},19,"General","general",{"code":4,"msg":80,"data":130},{"doc_id":77,"user_id":131,"nickname":42,"user_avatar":132,"doc_module":4,"category_id":100,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":22,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":138,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":78,"read_time":143,"preview_page_count":126,"preview_urls":144},1374408744247,"https://ap-avatar.wpscdn.com/avatar/14001251d37d565ec6f?x-image-process=image/resize,m_fixed,w_180,h_180&k=1790672120290115972","Table of Contents  \nThe Node.js Handbook  \n\n| Introduction |\n| --- |\n| Introduction to Node\u003Cbr>A brief history of Node How to install Node How much JavaScript do you need to know to use Node? Differences between Node and the Browser v8 \u003Cbr>Basics |\n| Run Node.js scripts from the command line \u003Cbr>How to exit from a Node.js program How to read environment variables Node hosting options\u003Cbr>Command Line |\n| Use the Node REPL\u003Cbr>Pass arguments from the command line Output to the command line Accept input from the command line\u003Cbr>Node modules and npm  |\n| Expose functionality from a Node file using exports \u003Cbr>npm Where does npm install the packages How to use or execute a package installed using npm The package.json file  The package-lock.json file  Find the installed version of an npm package  How to install an older version of an npm package  How to update all the Node dependencies to their latest version Semantic versioning rules\u003Cbr>Uninstalling npm packages |\n\nGlobal or local packages  \n\n| npm dependencies and devDependencies  |\n| --- |\n| npx  |\n| Working with the event loop  |\n| The event loop |\n| nextTick |\n| set Immediate |\n| Timers |\n| Asynchronous programming  |\n| Callbacks |\n| Promises |\n| async/await  |\n| The Node Event Emitter |\n| Networking |\n| [HTTP](HTTP) |\n| How [HTTP Requests work](HTTP Requests work)  |\n| Build an [HTTP server](HTTP server) |\n| Making [HTTP requests](HTTP requests)  |\n| Axios |\n| Websockets |\n| [HTTPS](HTTPS), secure connections |\n| File System |\n| File descriptors |\n| File stats |\n| File paths  |\n| Reading files  |\n| Writing files  |\n| Working with folders |\n| Some essential core modules |\n| The fs module |\n| The path module  |\n| The os module |\n| The events module |\n\nThe [http module](http module)  \n\n| Miscellaneous |\n| --- |\n| Streams\u003Cbr>Working with MySQL \u003Cbr>Difference between development and production  |\n\nThe Node .js Handbook  \nThe Node Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic.  \nI find this approach gives a well-rounded overview. This book does not try to cover everything  \nunder the sun related to Node. If you think some specific topic should be included, tell me. You can reach me on Twitter @flaviocopes.  \nI hope the contents of this book will help you achieve what you want: learn the basics Node.js.  \nThis book is written by Flavio. I publish web development tutorials every day on my website [flaviocopes.com](flaviocopes.com).  \nEnjoy!  \nIntroduction to Node  \nThis post is a getting started guide to Node.js, the server-side JavaScript runtime environment. Node.js is built on top of the Google Chrome V8 JavaScript engine, and it's mainly used to create web servers-but it's not limited to that  \nOverview  \n The best features of Node.js  \n Fast  \n Simple  \n JavaScript  V8  \n Asynchronous platform  \n A huge number of libraries  \n An example Node.js application  \n Node.js frameworks and tools  \nOverview  \nNode.js is a runtime environment for JavaScript that runs on the server.  \nNode.js is open source, cross-platform, and since its introduction in 2009 , it got hugely popular and now plays a significant role in the web development scene. If Git Hub stars are one popularity indication factor, having 46000+ stars means being very popular.  \nNode.js is built on top of the Google Chrome V8 JavaScript engine, and it's mainly used to create web servers-but it's not limited to that.  \nThe best features of Node .js  \nFast  \nOne of the main selling points of Node.js is speed. JavaScript code running on Node.js (depending on the benchmark) can be twice as fast than compiled languages like C or Java, and orders of magnitude faster than interpreted languages like Python or Ruby, because of its non-blocking paradigm.  \nSimple  \nNode.js is simple. Extremely simple, actually.  \nJavaScript  \nNode.js runs JavaScript code. This means that millions of frontend developers that already use JavaScript in the browser are able to run the server-side code and frontend-side code u","cbCaigEsUQ7C1Da3","https://ap.wps.com/l/cbCaigEsUQ7C1Da3","pdf",3288391,189,"English","# Introduction\n## Introduction to Node\n## Run Node.js scripts from the command line\n## Use the Node REPL\n## Expose functionality from a Node file using exports\n## npm dependencies and devDependencies\n## Working with the event loop\n## Node Event Emitter\n## Networking\n## HTTP server\n## File System\n## The http module\n# Miscellaneous\n## Streams\n## Working with MySQL","[{\"question\":\"What is Node.js and what is it built on?\",\"answer\":\"Node.js is a server-side JavaScript runtime environment. It runs on top of the Google Chrome V8 JavaScript engine.\"},{\"question\":\"Why is Node.js considered fast and efficient?\",\"answer\":\"Node.js can execute JavaScript quickly due to non-blocking design and the performance focus of the V8 engine. The book highlights speed compared with blocking and interpreted approaches.\"},{\"question\":\"How does Node.js support asynchronous programming?\",\"answer\":\"Node.js uses a single-threaded, event-driven model with callbacks so expensive operations run without blocking the execution of the rest of the program.\"}]","The Node.js Handbook - Introduction to Node.js | PDF",476,[145,149,153,157,161,165,169,173,177,181,185,190,195,200,205,210,215,220,225],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/7e5db21a17c7d6a4d6b62dd8afb84fcd.webp",983,1390,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/e0259d2f244a96e2b8eb1056b0a04eff.webp",982,1388,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/cfc719234b846341ee03de4fab1f3e07.webp",981,1387,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/29ed1d8fc4838c7dbbdc1b651e952098.webp",980,1385,{"page_no":95,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/e7f5b2cc6f73a1b83ec132ccd4c070c1.webp",979,1384,{"page_no":100,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/3a6d01cb910c05a15aba28ae5105962c.webp",978,1383,{"page_no":104,"url":170,"width":171,"height":172},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/a2116cf90a3606b286dd8c2d78d0bc93.webp",977,1381,{"page_no":109,"url":174,"width":175,"height":176},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/cf536675b189e8c1c0f6b249ba51f290.webp",976,1380,{"page_no":114,"url":178,"width":179,"height":180},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/d84890de70bc6bee8e717be8acfe6be1.webp",975,1378,{"page_no":122,"url":182,"width":183,"height":184},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/23263a4df99676c9a081362181d8d99c.webp",974,1377,{"page_no":186,"url":187,"width":188,"height":189},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/31b30422e5fedc89545f206502f828d7.webp",973,1376,{"page_no":191,"url":192,"width":193,"height":194},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/236e507381f67073b7b57ce8fa368da2.webp",972,1374,{"page_no":196,"url":197,"width":198,"height":199},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/e2b881164fac907c00c1ab6fcb76b128.webp",971,1373,{"page_no":201,"url":202,"width":203,"height":204},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/08c690c4cc0d9c18f0f620fcbca64a9e.webp",970,1371,{"page_no":206,"url":207,"width":208,"height":209},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/6f9c54da81e2a26ab707b7e7e2baa513.webp",969,1370,{"page_no":211,"url":212,"width":213,"height":214},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/5bfd53a5cfdf3cb28623063dd3286d72.webp",968,1369,{"page_no":216,"url":217,"width":218,"height":219},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/4c80c27397a74ab373b146acf9b8064b.webp",967,1367,{"page_no":221,"url":222,"width":223,"height":224},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/989255fdb5b0ed703aa292d9670c300d.webp",966,1366,{"page_no":126,"url":226,"width":227,"height":228},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/908b0a25e19c6d990501ad75306bd9a9.webp",965,1364,{"list":230,"token":11},[231,237,243,249,255,261,267,273,279,285],{"doc_id":232,"doc_title":233,"file_type":136,"home_preview_img_url":234,"slug":235,"view_count":22,"category_name":29,"create_tm":236},759796,"Microservices with Node.js","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044484999/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=cF4GjGebheqIMKgBVxllLQoJixo%3D","microservices-with-nodejs",1795895075,{"doc_id":238,"doc_title":239,"file_type":136,"home_preview_img_url":240,"slug":241,"view_count":104,"category_name":29,"create_tm":242},692311,"Node.js Course","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003200153/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=PqWXpMM3FEGxjPWFC%2FUEyxUlVSE%3D","nodejs-course",1794192942,{"doc_id":244,"doc_title":245,"file_type":136,"home_preview_img_url":246,"slug":247,"view_count":95,"category_name":29,"create_tm":248},692310,"Pro Node.js for Developers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003200149/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=FvNL5Wwckg7ghViu%2BCyrttk2zbI%3D","pro-nodejs-for-developers",1794192941,{"doc_id":250,"doc_title":251,"file_type":136,"home_preview_img_url":252,"slug":253,"view_count":100,"category_name":29,"create_tm":254},692304,"Node.js Handbook","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003199810/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=nUa8tgG51d3iBML8L9COMxjplV4%3D","nodejs-handbook",1794192930,{"doc_id":256,"doc_title":257,"file_type":136,"home_preview_img_url":258,"slug":259,"view_count":95,"category_name":29,"create_tm":260},692308,"How To Code in Node.js - Chapter 1 - Getting Started","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003200056/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=4NsQS%2BMJjtmd0a4Jk2L%2B1j%2B2jj4%3D","how-to-code-in-nodejs-chapter-1-getting-started",1794192939,{"doc_id":262,"doc_title":263,"file_type":136,"home_preview_img_url":264,"slug":265,"view_count":22,"category_name":29,"create_tm":266},759797,"Node.js Tutorial - Learn the Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044485000/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=QzjNsWqZNGvqbSGOKt4ZhBuaJLI%3D","nodejs-tutorial-learn-the-basics",1795895077,{"doc_id":268,"doc_title":269,"file_type":136,"home_preview_img_url":270,"slug":271,"view_count":186,"category_name":29,"create_tm":272},692305,"The Complete Node.js Dev Course - Version 3 - Section Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003199835/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=5b4CCrCF55E2JFAdWDMb7JwRRD0%3D","the-complete-nodejs-dev-course-version-3-section-outline",1794192933,{"doc_id":274,"doc_title":275,"file_type":136,"home_preview_img_url":276,"slug":277,"view_count":186,"category_name":29,"create_tm":278},489296,"SSUI-11-12-React - React for JavaScript","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926988879/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=XbOYTsT7A0VhicPVNPcSN0a9Fe0%3D","ssui-11-12-react-react-for-javascript",1790822029,{"doc_id":280,"doc_title":281,"file_type":136,"home_preview_img_url":282,"slug":283,"view_count":122,"category_name":29,"create_tm":284},692306,"Learning Node.js - A Hands-On Guide to Building Web Applications in JavaScript","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002737479/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=B9UquA%2FrAXQAp6l9wnSkKWmQYJk%3D","learning-nodejs-a-hands-on-guide-to-building-web-applications-in-javascript",1794192934,{"doc_id":286,"doc_title":287,"file_type":136,"home_preview_img_url":288,"slug":289,"view_count":196,"category_name":29,"create_tm":290},489294,"Getting Started with React - React Fundamentals and Setup Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926988797/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=PSSI%2FXg0UwRmHXFZzlt%2FfXp4BF4%3D","getting-started-with-react-react-fundamentals-and-setup-guide",1790822021]