mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-03-12 17:51:53 +08:00
chore: sync content to repo
This commit is contained in:
committed by
github-actions[bot]
parent
0d0060c98d
commit
746a528e96
@@ -1,15 +1,15 @@
|
||||
# --watch
|
||||
|
||||
The `--watch` flag in Node.js is a powerful feature introduced in Node.js version 19 that enables automatic reloading of your Node.js application whenever changes are detected in the specified files.
|
||||
|
||||
Here's How it works:
|
||||
|
||||
- You run your Node.js script with the `--watch` flag: `$ node --watch your_script.js`
|
||||
- Node.js starts watching the specified file (or directory) for changes.
|
||||
- Whenever a change is detected, Node.js automatically restarts the script
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Node.js CLI](https://nodejs.org/api/cli.html)
|
||||
- [@official@Node.js --watch Docs](https://nodejs.org/api/cli.html#--watch)
|
||||
- [@article@Medium - Watch Mode](https://medium.com/@khaled.smq/built-in-nodejs-watch-mode-52ffadaec8a8)
|
||||
# --watch
|
||||
|
||||
The `--watch` flag in Node.js is a powerful feature introduced in Node.js version 19 that enables automatic reloading of your Node.js application whenever changes are detected in the specified files.
|
||||
|
||||
Here's How it works:
|
||||
|
||||
* You run your Node.js script with the `--watch` flag: `$ node --watch your_script.js`
|
||||
* Node.js starts watching the specified file (or directory) for changes.
|
||||
* Whenever a change is detected, Node.js automatically restarts the script
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Node.js CLI](https://nodejs.org/api/cli.html)
|
||||
- [@official@Node.js --watch Docs](https://nodejs.org/api/cli.html#--watch)
|
||||
- [@article@Medium - Watch Mode](https://medium.com/@khaled.smq/built-in-nodejs-watch-mode-52ffadaec8a8)
|
||||
@@ -1,8 +1,8 @@
|
||||
# \_\_dirname
|
||||
# __dirname
|
||||
|
||||
The `__dirname` in a node script returns the path of the folder where the current JavaScript file resides. `__filename` and `__dirname` are used to get the filename and directory name of the currently executing file.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@\_\_dirname](https://nodejs.org/docs/latest/api/modules.html#__dirname)
|
||||
- [@article@How to use \_\_dirname](https://www.digitalocean.com/community/tutorials/nodejs-how-to-use__dirname)
|
||||
- [@official@__dirname](https://nodejs.org/docs/latest/api/modules.html#__dirname)
|
||||
- [@article@How to use __dirname](https://www.digitalocean.com/community/tutorials/nodejs-how-to-use__dirname)
|
||||
@@ -1,7 +1,7 @@
|
||||
# \_\_filename
|
||||
# __filename
|
||||
|
||||
The `__filename` in Node.js returns the filename of the executed code. It gives the absolute path of the code file. The following approach covers implementing `__filename` in the Node.js project.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@\_\_filename](https://nodejs.org/docs/latest/api/modules.html#__filename)
|
||||
- [@official@__filename](https://nodejs.org/docs/latest/api/modules.html#__filename)
|
||||
@@ -5,4 +5,4 @@ An `AssertionError` in Node.js is an error that is thrown when the `assert` modu
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Node.js Assert](https://nodejs.org/api/assert.html#new-assertassertionerroroptions)
|
||||
- [@article@Node.js Error Handling - AssertionError](https://blog.airbrake.io/blog/nodejs-error-handling/assertionerror-nodejs)
|
||||
- [@article@Node.js Error Handling - AssertionError](https://blog.airbrake.io/blog/nodejs-error-handling/assertionerror-nodejs)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@article@Introduction to Async JS](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Introducing/)
|
||||
- [@video@Asynchronous Vs Synchronous Programming](https://www.youtube.com/watch?v=Kpn2ajSa92c)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -6,5 +6,5 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Async/Await Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function)
|
||||
- [@article@More on async await](https://javascript.info/async-await)
|
||||
- [@video@Using async await](https://www.youtube.com/watch?v=V_Kr9OSfDeU)
|
||||
- [@article@W3Docs Async/Await](https://www.w3docs.com/learn-javascript/async-await.html)
|
||||
- [@video@Using async await](https://www.youtube.com/watch?v=V_Kr9OSfDeU)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Axios Documentation](https://axios-http.com/docs/intro)
|
||||
- [@video@Axios Tutorial](https://www.youtube.com/watch?v=6LyagkoRWYA)
|
||||
- [@feed@Explore top posts about Axios](https://app.daily.dev/tags/axios?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Axios](https://app.daily.dev/tags/axios?ref=roadmapsh)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@article@What is an API?](https://aws.amazon.com/what-is/api/)
|
||||
- [@video@What is an API (in 5 minutes)](https://youtu.be/ByGJQzlzxQg?si=9EB9lgRvEOgt3xPJ)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -5,4 +5,4 @@ Node.js, being an asynchronous platform, doesn't wait around for things like fil
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Asynchronicity in Programming Languages](https://nodejs.org/en/learn/asynchronous-work/javascript-asynchronous-programming-and-callbacks)
|
||||
- [@article@What are Callbacks?](https://developer.mozilla.org/en-US/docs/Glossary/Callback_function)
|
||||
- [@article@What are Callbacks?](https://developer.mozilla.org/en-US/docs/Glossary/Callback_function)
|
||||
@@ -4,4 +4,4 @@ The stack trace is used to trace the active stack frames at a particular instanc
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Multiple Ways to Log The Stack Trace in Node.js](https://www.cloudhadoop.com/nodejs-print-stack-trace-error/)
|
||||
- [@article@Multiple Ways to Log The Stack Trace in Node.js](https://www.cloudhadoop.com/nodejs-print-stack-trace-error/)
|
||||
@@ -4,4 +4,4 @@ Chalk is a clean and focused library used to do string styling in your terminal
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@opensource@Chalk Docs](https://github.com/chalk/chalk#readme)
|
||||
- [@opensource@Chalk Docs](https://github.com/chalk/chalk#readme)
|
||||
@@ -1,13 +1,10 @@
|
||||
# Child Process
|
||||
|
||||
The child_process module gives the node the ability to run the child process, established through IPC (inter-process communication) by accessing operating system commands.
|
||||
The child\_process module gives the node the ability to run the child process, established through IPC (inter-process communication) by accessing operating system commands.
|
||||
|
||||
The three main methods inside this module are :
|
||||
`child_process.spawn()`
|
||||
`child_process.fork()`
|
||||
`child_process.exec()`
|
||||
The three main methods inside this module are : `child_process.spawn()` `child_process.fork()` `child_process.exec()`
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Child Process Docs](https://nodejs.org/api/child_process.html#child-process)
|
||||
- [@article@Securing Node.js Against Command Injection](https://www.nodejs-security.com/blog/securing-your-nodejs-apps-by-analyzing-real-world-command-injection-examples)
|
||||
- [@article@Securing Node.js Against Command Injection](https://www.nodejs-security.com/blog/securing-your-nodejs-apps-by-analyzing-real-world-command-injection-examples)
|
||||
@@ -4,4 +4,4 @@ Chokidar is a fast open-source file watcher for node. js. You give it a bunch of
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@chokidar](https://www.npmjs.com/package/chokidar)
|
||||
- [@official@chokidar](https://www.npmjs.com/package/chokidar)
|
||||
@@ -5,4 +5,4 @@ CLI-Progress is a package that provides a custom progress bar for CLI applicatio
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@CLI-Progress Documentation](https://www.npmjs.com/package/cli-progress)
|
||||
- [@feed@Explore top posts about CLI](https://app.daily.dev/tags/cli?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about CLI](https://app.daily.dev/tags/cli?ref=roadmapsh)
|
||||
@@ -4,4 +4,4 @@ The Cluster module allows you to easily create child processes that each runs si
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Node.js Cluster](https://nodejs.org/api/cluster.html#cluster)
|
||||
- [@official@Node.js Cluster](https://nodejs.org/api/cluster.html#cluster)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@article@Build a Command Line Application with Node.js](https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs)
|
||||
- [@video@5-Minute Node.js CLI Project](https://www.youtube.com/watch?v=_oHByo8tiEY)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -5,4 +5,4 @@ Commander is a light-weight, expressive, and powerful command-line framework for
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@commander package](https://www.npmjs.com/package/commander)
|
||||
- [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh)
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
These are the core modules that come with `Node.js` out of the box. This module provides tools or APIs for performing out certain standard `Node.js` operations. like interacting with the file system, url parsing, or logging information to the console.
|
||||
|
||||
Learn more from the following resources:
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@fs module](https://nodejs.org/api/fs.html)
|
||||
- [@official@url module](https://nodejs.org/api/url.html)
|
||||
|
||||
@@ -7,6 +7,6 @@ Visit the following resources to learn more:
|
||||
- [@article@CommonJS vs ESM](https://blog.logrocket.com/commonjs-vs-es-modules-node-js/)
|
||||
- [@article@Using CommonJS](https://www.javascripttutorial.net/nodejs-tutorial/nodejs-modules/)
|
||||
- [@article@Using ES Modules](https://blog.logrocket.com/es-modules-in-node-today/)
|
||||
- [@video@Using Modules](https://www.youtube.com/watch?v=pP4kjXykbio)
|
||||
- [@article@CommonJS vs. ES Modules: Modules and Imports in NodeJS](https://reflectoring.io/nodejs-modules-imports/)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@video@Using Modules](https://www.youtube.com/watch?v=pP4kjXykbio)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -4,6 +4,6 @@ Modules are the collection of JavaScript codes in a separate logical file that c
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@video@Creating a Module in Node.js](https://www.youtube.com/watch?v=Cxo4UKpHv5s)
|
||||
- [@article@CommonJS vs ESM in Node.js](https://blog.logrocket.com/commonjs-vs-es-modules-node-js/)
|
||||
- [@article@Modules and Imports in Node.js](https://reflectoring.io/nodejs-modules-imports/)
|
||||
- [@video@Creating a Module in Node.js](https://www.youtube.com/watch?v=Cxo4UKpHv5s)
|
||||
@@ -4,4 +4,4 @@ npm packages allow you to bundle some specific functionality into a reusable pac
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Best practices for creating a modern npm package](https://snyk.io/blog/best-practices-create-modern-npm-package/)
|
||||
- [@article@Best practices for creating a modern npm package](https://snyk.io/blog/best-practices-create-modern-npm-package/)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Cypress](https://www.cypress.io/)
|
||||
- [@article@Cypress Documentation](https://docs.cypress.io/)
|
||||
- [@feed@Explore top posts about Cypress](https://app.daily.dev/tags/cypress?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Cypress](https://app.daily.dev/tags/cypress?ref=roadmapsh)
|
||||
@@ -8,5 +8,5 @@ Using `console.log` to debug the code generally dives into an infinite loop of
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Wikipedia - What is Debugging?](https://en.wikipedia.org/wiki/Debugging)
|
||||
- [@official@Node.js - Getting Started](https://nodejs.org/en/learn/getting-started/debugging)
|
||||
- [@article@Wikipedia - What is Debugging?](https://en.wikipedia.org/wiki/Debugging)
|
||||
@@ -4,9 +4,9 @@ dotenv is a zero-dependency module that loads environment variables from a `.env
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@The Twelve-Factor App Methodology](https://12factor.net/config)
|
||||
- [@official@process.env Documentation](https://nodejs.org/docs/latest/api/process.html#process_process_env)
|
||||
- [@opensource@dotenv Docs](https://github.com/motdotla/dotenv#readme)
|
||||
- [@official@Dotenv package](https://www.npmjs.com/package/dotenv)
|
||||
- [@opensource@dotenv Docs](https://github.com/motdotla/dotenv#readme)
|
||||
- [@article@The Twelve-Factor App Methodology](https://12factor.net/config)
|
||||
- [@article@Dotenv tutorial](https://zetcode.com/javascript/dotenv/)
|
||||
- [@feed@Explore top posts about General Programming](https://app.daily.dev/tags/general-programming?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about General Programming](https://app.daily.dev/tags/general-programming?ref=roadmapsh)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@official@Drizzle](https://orm.drizzle.team/)
|
||||
- [@official@Drizzle Documentation](https://orm.drizzle.team/docs/overview)
|
||||
- [@opensource@Drizzle GitHub](https://github.com/drizzle-team/drizzle-orm)
|
||||
- [@article@Getting Started with Drizzle](https://dev.to/franciscomendes10866/getting-started-with-drizzle-orm-a-beginners-tutorial-4782)
|
||||
- [@article@Getting Started with Drizzle](https://dev.to/franciscomendes10866/getting-started-with-drizzle-orm-a-beginners-tutorial-4782)
|
||||
@@ -1,7 +1,6 @@
|
||||
# EJS
|
||||
|
||||
EJS is a template language or engine that allows you to generate HTML markup with pure JavaScript. And this is what makes it perfect for Nodejs applications.
|
||||
In simple words, the EJS template engine helps to easily embed JavaScript into your HTML template.
|
||||
EJS is a template language or engine that allows you to generate HTML markup with pure JavaScript. And this is what makes it perfect for Nodejs applications. In simple words, the EJS template engine helps to easily embed JavaScript into your HTML template.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
@@ -10,4 +9,4 @@ Visit the following resources to learn more:
|
||||
- [@official@EJS Package](https://www.npmjs.com/package/ejs)
|
||||
- [@article@Try EJS Online](https://ionicabizau.github.io/ejs-playground/)
|
||||
- [@article@How to use EJS](https://www.digitalocean.com/community/tutorials/how-to-use-ejs-to-template-your-node-application)
|
||||
- [@article@Step-by-Step EJS Guide](https://codeforgeek.com/ejs-template-engine-in-nodejs/)
|
||||
- [@article@Step-by-Step EJS Guide](https://codeforgeek.com/ejs-template-engine-in-nodejs/)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@article@Node.js Error Handling Best Practices](https://sematext.com/blog/node-js-error-handling)
|
||||
- [@article@Error handling in Node.js](https://blog.logrocket.com/error-handling-node-js/)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -4,4 +4,4 @@ ESM (ECMAScript Modules) is a standardized module system in JavaScript that allo
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@ESM Documentation](https://nodejs.org/api/esm.html)
|
||||
- [@official@ESM Documentation](https://nodejs.org/api/esm.html)
|
||||
@@ -5,4 +5,4 @@ In Node.js, an event can be described simply as a string with a corresponding ca
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@What are Event Emitters?](https://nodejs.org/en/learn/asynchronous-work/the-nodejs-event-emitter)
|
||||
- [@article@Using Event Emitters in Node.js](https://www.digitalocean.com/community/tutorials/using-event-emitters-in-node-js)
|
||||
- [@article@Using Event Emitters in Node.js](https://www.digitalocean.com/community/tutorials/using-event-emitters-in-node-js)
|
||||
@@ -4,9 +4,9 @@ The Event Loop is one of the most critical aspects of Node.js. Why is this so im
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@The Node.JS Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#what-is-the-event-loop)
|
||||
- [@article@JavaScript Visualized: Event Loop](https://dev.to/lydiahallie/javascript-visualized-event-loop-3dif)
|
||||
- [@course@The Node.js Event Loop](https://www.coursera.org/lecture/secure-full-stack-mean-developer/the-node-js-event-loop-j5fbT)
|
||||
- [@official@The Node.JS Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#what-is-the-event-loop)
|
||||
- [@official@The NodeJS Event loop](https://nodejs.org/en/guides/event-loop-timers-and-nexttick)
|
||||
- [@official@Don't Block the Event Loop](https://nodejs.org/en/guides/dont-block-the-event-loop)
|
||||
- [@article@Event Loop in Node.js - Mixu's Node book](https://book.mixu.net/node/ch2.html#the-event-loop-understanding-how-node-executes-javascript-code)
|
||||
- [@article@JavaScript Visualized: Event Loop](https://dev.to/lydiahallie/javascript-visualized-event-loop-3dif)
|
||||
- [@article@Event Loop in Node.js - Mixu's Node book](https://book.mixu.net/node/ch2.html#the-event-loop-understanding-how-node-executes-javascript-code)
|
||||
@@ -5,4 +5,4 @@ Exiting is a way of terminating a Node.js process by using node.js process modul
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Exit Documentation](https://nodejs.org/api/process.html#event-exit)
|
||||
- [@article@How to Exit a Process in Node.js](https://betterstack.com/community/questions/how-to-exit-in-node-js/)
|
||||
- [@article@How to Exit a Process in Node.js](https://betterstack.com/community/questions/how-to-exit-in-node-js/)
|
||||
@@ -8,4 +8,4 @@ Visit the following resources to learn more:
|
||||
- [@official@Getting Started Guide](https://expressjs.com/en/starter/installing.html)
|
||||
- [@article@Express Full Guide](https://www.tutorialspoint.com/nodejs/nodejs_express_framework.htm)
|
||||
- [@article@Sample Project](https://auth0.com/blog/create-a-simple-and-stylish-node-express-app/)
|
||||
- [@feed@Explore top posts about Express.js](https://app.daily.dev/tags/express?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Express.js](https://app.daily.dev/tags/express?ref=roadmapsh)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@official@Fastify](https://www.fastify.io/)
|
||||
- [@official@Fastify Documentation](https://www.fastify.io/docs/latest/)
|
||||
- [@video@Beginner Fastify Tutorial](https://www.youtube.com/watch?v=Lk-uVEVGxOA)
|
||||
- [@feed@Explore top posts about Fastify](https://app.daily.dev/tags/fastify?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Fastify](https://app.daily.dev/tags/fastify?ref=roadmapsh)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@official@MDN - Using the Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch)
|
||||
- [@official@NodeJS globals: fetch](https://nodejs.org/api/globals.html#fetch)
|
||||
- [@official@MDN - Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
||||
- [@article@freeCodeCamp on avoiding callback hell](https://www.freecodecamp.org/news/how-to-deal-with-nested-callbacks-and-avoid-callback-hell-1bc8dc4a2012/)
|
||||
- [@article@freeCodeCamp on avoiding callback hell](https://www.freecodecamp.org/news/how-to-deal-with-nested-callbacks-and-avoid-callback-hell-1bc8dc4a2012/)
|
||||
@@ -4,4 +4,4 @@ This package aims to fully implement the FIGfont spec in JavaScript, which repre
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@opensource@figlet](https://github.com/patorjk/figlet.js)
|
||||
- [@opensource@figlet](https://github.com/patorjk/figlet.js)
|
||||
@@ -5,4 +5,4 @@ fs-extra adds file system methods that aren't included in the native fs module a
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@fs-extra package](https://www.npmjs.com/package/fs-extra)
|
||||
- [@article@fs-extra vs fs](https://ar.al/2021/03/07/fs-extra-to-fs/)
|
||||
- [@article@fs-extra vs fs](https://ar.al/2021/03/07/fs-extra-to-fs/)
|
||||
@@ -5,4 +5,4 @@ File System or `fs` module is a built in module in Node that enables interacting
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@fs module](https://nodejs.org/api/fs.html)
|
||||
- [@video@Using fs](https://www.youtube.com/watch?v=ZySsdm576wE)
|
||||
- [@video@Using fs](https://www.youtube.com/watch?v=ZySsdm576wE)
|
||||
@@ -5,4 +5,4 @@ Memory management in JavaScript is performed automatically and invisibly to us.
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@JavaScript Garbage Collection](https://javascript.info/garbage-collection)
|
||||
- [@article@Memory Management in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management)
|
||||
- [@article@Memory Management in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management)
|
||||
@@ -4,4 +4,4 @@ The glob pattern is most commonly used to specify filenames, called wildcard cha
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@NPM Glob](https://www.npmjs.com/package/glob)
|
||||
- [@official@NPM Glob](https://www.npmjs.com/package/glob)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Downloading and installing packages locally](https://docs.npmjs.com/downloading-and-installing-packages-locally)
|
||||
- [@official@Downloading and installing packages globally](https://docs.npmjs.com/downloading-and-installing-packages-globally)
|
||||
- [@official@NPM Install Docs](https://docs.npmjs.com/cli/commands/npm-install)
|
||||
- [@official@NPM Install Docs](https://docs.npmjs.com/cli/commands/npm-install)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@official@global Keyword in Node.js](https://nodejs.org/api/globals.html#global)
|
||||
- [@article@What is the 'global' object in NodeJS](https://stackoverflow.com/questions/43627622/)
|
||||
- [@video@What is Global Object?](https://www.youtube.com/watch?v=jn8PZNBmKm0)
|
||||
- [@video@Global Object in Node](https://www.youtube.com/watch?v=PY-AycMkEAg)
|
||||
- [@video@Global Object in Node](https://www.youtube.com/watch?v=PY-AycMkEAg)
|
||||
@@ -7,4 +7,4 @@ Based on fast-glob but adds a bunch of useful features.
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@NPM Globby](https://www.npmjs.com/package/globby)
|
||||
- [@opensource@GitHub Globby](https://github.com/sindresorhus/globby)
|
||||
- [@opensource@GitHub Globby](https://github.com/sindresorhus/globby)
|
||||
@@ -5,4 +5,4 @@ Got is a lighter, human-friendly, and powerful HTTP request library explicitly d
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Got Documentation](https://www.npmjs.com/package/got)
|
||||
- [@article@How to consume APIs using GOT in Node.js?](https://rapidapi.com/guides/call-apis-got)
|
||||
- [@article@How to consume APIs using GOT in Node.js?](https://rapidapi.com/guides/call-apis-got)
|
||||
@@ -5,4 +5,4 @@ Errors must always be handled. If you are using synchronous programming you coul
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Async Errors](https://www.mariokandut.com/handling-errors-in-asynchronous-functions-node-js/)
|
||||
- [@article@The best way to handle errors in asynchronous javascript](https://dev.to/m__mdy__m/the-best-way-to-handle-errors-in-asynchronous-javascript-16bb)
|
||||
- [@article@The best way to handle errors in asynchronous javascript](https://dev.to/m__mdy__m/the-best-way-to-handle-errors-in-asynchronous-javascript-16bb)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@article@Rising Stack - History of Node.js on a Timeline](https://blog.risingstack.com/history-of-node-js/)
|
||||
- [@article@SAP Press - How Did Node.js Come About?](https://blog.sap-press.com/how-did-node.js-come-about)
|
||||
- [@video@Node.js: The Documentary | An Origin Story](https://youtu.be/LB8KwiiUGy0)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -1,8 +1,8 @@
|
||||
# Hono
|
||||
|
||||
Hono is a lightweight, simple, and fast web framework for Cloudflare Workers, Deno, Bun, and other applications. It is a modern web application that is both fast and flexible. It offers inbuilt support for TypeScript, and easy development in a local environment. Using Hono, It is easy to create publishable web applications with Deno, Bun, and Cloudflare Workers.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Hono Documentation](https://hono.dev/docs/)
|
||||
- [@article@Build a web application with Hono](https://blog.logrocket.com/build-web-application-hono/)
|
||||
# Hono
|
||||
|
||||
Hono is a lightweight, simple, and fast web framework for Cloudflare Workers, Deno, Bun, and other applications. It is a modern web application that is both fast and flexible. It offers inbuilt support for TypeScript, and easy development in a local environment. Using Hono, It is easy to create publishable web applications with Deno, Bun, and Cloudflare Workers.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Hono Documentation](https://hono.dev/docs/)
|
||||
- [@article@Build a web application with Hono](https://blog.logrocket.com/build-web-application-hono/)
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
You can make API calls using the `http` module in Node.js as well. Here are the two methods that you can use:
|
||||
|
||||
- `http.get()` - Make http GET requests.
|
||||
- `http.request()` - Similar to `http.get()` but enables sending other types of http requests (GET requests inclusive).
|
||||
* `http.get()` - Make http GET requests.
|
||||
* `http.request()` - Similar to `http.get()` but enables sending other types of http requests (GET requests inclusive).
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Node.js `http.get()` documentation](https://nodejs.org/docs/latest-v16.x/api/http.html#httpgeturl-options-callback)
|
||||
- [@official@Node.js `http.request()` documentation](https://nodejs.org/docs/latest-v16.x/api/http.html#httprequesturl-options-callback)
|
||||
- [@article@How To Create an HTTP Client with Core HTTP in Node.js](https://www.digitalocean.com/community/tutorials/how-to-create-an-http-client-with-core-http-in-node-js)
|
||||
- [@official@Node.js http.get() documentation](https://nodejs.org/docs/latest-v16.x/api/http.html#httpgeturl-options-callback)
|
||||
- [@official@Node.js http.request() documentation](https://nodejs.org/docs/latest-v16.x/api/http.html#httprequesturl-options-callback)
|
||||
- [@article@How To Create an HTTP Client with Core HTTP in Node.js](https://www.digitalocean.com/community/tutorials/how-to-create-an-http-client-with-core-http-in-node-js)
|
||||
@@ -1,7 +1,6 @@
|
||||
# Inquirer
|
||||
|
||||
Inquirer.js is a collection of common interactive command line interfaces for taking inputs from user.
|
||||
It is promise based and supports chaining series of prompt questions together, receiving text input, checkboxes, lists of choices and much more.
|
||||
Inquirer.js is a collection of common interactive command line interfaces for taking inputs from user. It is promise based and supports chaining series of prompt questions together, receiving text input, checkboxes, lists of choices and much more.
|
||||
|
||||
You can use it to empower your terminal applications that need user input or to build your own CLI.
|
||||
|
||||
@@ -9,4 +8,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@opensource@Inquirer](https://github.com/SBoudrias/Inquirer.js#readme)
|
||||
- [@article@How To Create Interactive Command-line Prompts with Inquirer.js](https://www.digitalocean.com/community/tutorials/nodejs-interactive-command-line-prompts)
|
||||
- [@video@How to make a CLI in Node.js with Inquirer](https://www.youtube.com/watch?v=0xjfkl9nODQ)
|
||||
- [@video@How to make a CLI in Node.js with Inquirer](https://www.youtube.com/watch?v=0xjfkl9nODQ)
|
||||
@@ -8,4 +8,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Node.js](https://nodejs.org/en/)
|
||||
- [@official@Node.js Documentation](https://nodejs.org/en/docs/)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -4,15 +4,15 @@ JavaScript Errors are used by JavaScript to inform developers about various issu
|
||||
|
||||
JavaScript has six types of errors that may occur during the execution of the script:
|
||||
|
||||
- EvalError
|
||||
- RangeError
|
||||
- ReferenceError
|
||||
- SyntaxError
|
||||
- TypeError
|
||||
- URIError
|
||||
* EvalError
|
||||
* RangeError
|
||||
* ReferenceError
|
||||
* SyntaxError
|
||||
* TypeError
|
||||
* URIError
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Error Types in JavaScript](https://blog.bitsrc.io/types-of-native-errors-in-javascript-you-must-know-b8238d40e492)
|
||||
- [@article@JavaScript error reference - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors)
|
||||
- [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Jest](https://jestjs.io)
|
||||
- [@official@Jest Documentation](https://jestjs.io/docs/getting-started)
|
||||
- [@feed@Explore top posts about Jest](https://app.daily.dev/tags/jest?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Jest](https://app.daily.dev/tags/jest?ref=roadmapsh)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@JSON Package Documentation](https://www.npmjs.com/package/jsonwebtoken)
|
||||
- [@article@What is JWT](https://www.akana.com/blog/what-is-jwt)
|
||||
- [@video@JWT Implementation](https://www.youtube.com/watch?v=mbsmsi7l3r4)
|
||||
- [@video@JWT Implementation](https://www.youtube.com/watch?v=mbsmsi7l3r4)
|
||||
@@ -5,4 +5,4 @@ PM2 lets you run your nodejs scripts forever. In the event that your application
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Keep a Node Application Constantly Running](https://devtut.github.io/nodejs/keep-a-node-application-constantly-running.html#use-pm2-as-a-process-manager)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -5,4 +5,4 @@ Knex.js is a "batteries included" SQL query builder for PostgreSQL, CockroachDB,
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Knex.js](https://knexjs.org)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -4,5 +4,5 @@ Ky is a tiny and elegant HTTP client based on the browser Fetch API. Ky targets
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@opensource@Ky Docs](https://github.com/sindresorhus/ky)
|
||||
- [@official@Ky Package](https://www.npmjs.com/package/ky/v/0.9.0)
|
||||
- [@opensource@Ky Docs](https://github.com/sindresorhus/ky)
|
||||
@@ -5,4 +5,4 @@ Locally installed packages are available only to the project where the packages
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Downloading and installing packages locally](https://docs.npmjs.com/downloading-and-installing-packages-locally)
|
||||
- [@official@Downloading and installing packages globally](https://docs.npmjs.com/downloading-and-installing-packages-globally)
|
||||
- [@official@Downloading and installing packages globally](https://docs.npmjs.com/downloading-and-installing-packages-globally)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@article@Node.js Logging](https://stackify.com/node-js-logging/)
|
||||
- [@article@Logging best practices](https://blog.appsignal.com/2021/09/01/best-practices-for-logging-in-nodejs.html)
|
||||
- [@article@Logging](https://stackify.com/node-js-logging/)
|
||||
- [@feed@Explore top posts about Logging](https://app.daily.dev/tags/logging?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Logging](https://app.daily.dev/tags/logging?ref=roadmapsh)
|
||||
@@ -4,4 +4,4 @@ Marko is a fast and lightweight HTML-based templating engine that compiles templ
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Marko Documentation](https://markojs.com/docs/guides-overview/)
|
||||
- [@official@Marko Documentation](https://markojs.com/docs/guides-overview/)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@article@Memory Leaks in Node.js](https://sematext.com/blog/nodejs-memory-leaks/)
|
||||
- [@article@Memory Leaks Causes](https://sematext.com/blog/nodejs-memory-leaks/#what-causes-them-common-node-js-memory-leaks)
|
||||
- [@article@Memory Leaks Detectors](https://sematext.com/blog/nodejs-memory-leaks/#node-js-memory-leak-detectors)
|
||||
- [@feed@Explore top posts about General Programming](https://app.daily.dev/tags/general-programming?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about General Programming](https://app.daily.dev/tags/general-programming?ref=roadmapsh)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@official@Modules: CommonJS modules](https://nodejs.org/api/modules.html#modules-commonjs-modules)
|
||||
- [@article@CommonJS vs. ES Modules in Node.js](https://blog.logrocket.com/commonjs-vs-es-modules-node-js/)
|
||||
- [@video@Modules in Node.js](https://www.youtube.com/watch?v=9Amxzvq5LY8&)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@official@Mongoose](https://mongoosejs.com)
|
||||
- [@official@Mongoose Documentation](https://mongoosejs.com/docs/guide.html)
|
||||
- [@article@Getting Started with MongoDB and Mongoose](https://www.mongodb.com/developer/languages/javascript/getting-started-with-mongodb-and-mongoose/)
|
||||
- [@feed@Explore top posts about Mongoose](https://app.daily.dev/tags/mongoose?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Mongoose](https://app.daily.dev/tags/mongoose?ref=roadmapsh)
|
||||
@@ -4,4 +4,4 @@ In Node.js, you need to restart the process to make changes take effect. This ad
|
||||
|
||||
Since Node.js 18.11.0, you can run Node with the `--watch` flag to reload your app every time a file is changed. So you don't need to use `nodemon` anymore.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
Visit the following resources to learn more:
|
||||
@@ -5,4 +5,4 @@ Morgan is a NodeJS and express.js middleware to log the HTTP request and error,
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@morgan package](https://www.npmjs.com/package/morgan)
|
||||
- [@article@How to Use Morgan | DigitalOcean](https://www.digitalocean.com/community/tutorials/nodejs-getting-started-morgan)
|
||||
- [@article@How to Use Morgan | DigitalOcean](https://www.digitalocean.com/community/tutorials/nodejs-getting-started-morgan)
|
||||
@@ -4,4 +4,4 @@ Another way to connect to different databases in Node.js is to use the official
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@MongoDB Drivers](https://www.mongodb.com/docs/drivers/)
|
||||
- [@official@MongoDB Drivers](https://www.mongodb.com/docs/drivers/)
|
||||
@@ -1,3 +1,3 @@
|
||||
# Native drivers
|
||||
|
||||
Another way to connect to different databases in Node.js is to use the official native drivers provided by the database.
|
||||
Another way to connect to different databases in Node.js is to use the official native drivers provided by the database.
|
||||
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
|
||||
- [@official@NestJS](https://nestjs.com)
|
||||
- [@official@NestJS Documentations](https://docs.nestjs.com)
|
||||
- [@video@Beginner NestJS Tutorial](https://www.youtube.com/watch?v=GHTA143_b-s)
|
||||
- [@feed@Explore top posts about NestJS](https://app.daily.dev/tags/nestjs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about NestJS](https://app.daily.dev/tags/nestjs?ref=roadmapsh)
|
||||
@@ -4,4 +4,4 @@ Node.js provides a built-in DevTools-based debugger to allow debugging Node.js a
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Debugging Node.js with Chrome DevTools](https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27)
|
||||
- [@article@Debugging Node.js with Chrome DevTools](https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27)
|
||||
@@ -5,4 +5,4 @@ Both the browser and Node.js use JavaScript as their programming language. Build
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Differences between Node.js and the Browser](https://nodejs.org/en/learn/getting-started/differences-between-nodejs-and-the-browser/)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -9,4 +9,4 @@ Visit the following resources to learn more:
|
||||
- [@official@Nodemon](https://nodemon.io/)
|
||||
- [@article@PM2](https://pm2.keymetrics.io/docs/usage/quick-start/)
|
||||
- [@article@How To Restart Your Node.js Apps Automatically with nodemon](https://www.digitalocean.com/community/tutorials/workflow-nodemon)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
Key Features
|
||||
|
||||
- Simplicity: Easy to use and understand.
|
||||
- Asynchronous Support: Handles asynchronous code gracefully.
|
||||
- Subtests: Allows for organizing tests into hierarchical structures.
|
||||
- Hooks: Provides beforeEach and afterEach hooks for setup and teardown.
|
||||
* Simplicity: Easy to use and understand.
|
||||
* Asynchronous Support: Handles asynchronous code gracefully.
|
||||
* Subtests: Allows for organizing tests into hierarchical structures.
|
||||
* Hooks: Provides beforeEach and afterEach hooks for setup and teardown.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Test Runner API Docs](https://nodejs.org/api/test.html)
|
||||
- [@official@Node.js Test Runner](https://nodejs.org/en/learn/test-runner/using-test-runner)
|
||||
- [@official@Node.js Test Runner](https://nodejs.org/en/learn/test-runner/using-test-runner)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@npm workspaces](https://docs.npmjs.com/cli/using-npm/workspaces)
|
||||
- [@article@Getting Started with Npm Workspaces](https://ruanmartinelli.com/blog/npm-7-workspaces-1/)
|
||||
- [@feed@Explore top posts about NPM](https://app.daily.dev/tags/npm?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about NPM](https://app.daily.dev/tags/npm?ref=roadmapsh)
|
||||
@@ -10,4 +10,4 @@ Visit the following resources to learn more:
|
||||
- [@official@What is npm?](https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager)
|
||||
- [@official@An introduction to the npm package manager](https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager)
|
||||
- [@video@NPM Crash Course](https://www.youtube.com/watch?v=jHDhaSSKmB0)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -5,4 +5,4 @@ npx is a very powerful command that's been available in npm starting version 5.2
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@npx](https://docs.npmjs.com/cli/commands/npx/)
|
||||
- [@article@Introduction to the npx Node.js Package Runner](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b)
|
||||
- [@article@Introduction to the npx Node.js Package Runner](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b)
|
||||
@@ -6,5 +6,5 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@PassportJS](https://www.passportjs.org/)
|
||||
- [@official@PassportJS Documentation](https://www.passportjs.org/docs/)
|
||||
- [@video@Implementation of OAuth using passportjs](https://www.youtube.com/watch?v=sakQbeRjgwg\&list=PL4cUxeGkcC9jdm7QX143aMLAqyM-jTZ2x)
|
||||
- [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh)
|
||||
- [@video@Implementation of OAuth using passportjs](https://www.youtube.com/watch?v=sakQbeRjgwg&list=PL4cUxeGkcC9jdm7QX143aMLAqyM-jTZ2x)
|
||||
- [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Path Documentation](https://nodejs.org/api/path.html)
|
||||
- [@official@Learn Node.js File Paths](https://nodejs.org/en/learn/manipulating-files/nodejs-file-paths)
|
||||
- [@video@Path Module in Node.js](https://youtu.be/j95Lwxvi9JY)
|
||||
- [@video@Path Module in Node.js](https://youtu.be/j95Lwxvi9JY)
|
||||
@@ -1,6 +1,6 @@
|
||||
# Playwright
|
||||
|
||||
Playwright is an open-source automation library developed by Microsoft for testing and automating web applications. 1 It offers a unified API to control Chromium, Firefox, and WebKit browsers, making it a versatile choice for cross-browser testing.
|
||||
Playwright is an open-source automation library developed by Microsoft for testing and automating web applications. 1 It offers a unified API to control Chromium, Firefox, and WebKit browsers, making it a versatile choice for cross-browser testing.
|
||||
|
||||
Playwright provides a high-level API to interact with web pages. You can write scripts to simulate user actions, such as clicking buttons, filling forms, and navigating through different pages. Playwright handles the underlying browser interactions, making it easy to write and maintain tests.
|
||||
|
||||
@@ -8,4 +8,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Playwright](https://playwright.dev/)
|
||||
- [@official@Playwright Docs](https://playwright.dev/docs/getting-started-vscode)
|
||||
- [@article@Getting Started with Playwright](https://learn.microsoft.com/en-us/shows/getting-started-with-end-to-end-testing-with-playwright/)
|
||||
- [@article@Getting Started with Playwright](https://learn.microsoft.com/en-us/shows/getting-started-with-end-to-end-testing-with-playwright/)
|
||||
@@ -5,4 +5,4 @@ PM2 is a production process manager for Node.js applications with a built-in loa
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Pm2](https://pm2.keymetrics.io/)
|
||||
- [@official@Pm2 Documentation](https://pm2.keymetrics.io/docs/usage/quick-start/)
|
||||
- [@official@Pm2 Documentation](https://pm2.keymetrics.io/docs/usage/quick-start/)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Prisma](https://www.prisma.io/)
|
||||
- [@video@Prisma & MongoDB Youtube Tutorial](https://www.youtube.com/watch?v=-7r4whMKt1s)
|
||||
- [@feed@Explore top posts about Prisma](https://app.daily.dev/tags/prisma?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Prisma](https://app.daily.dev/tags/prisma?ref=roadmapsh)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Prisma](https://www.prisma.io/)
|
||||
- [@official@Prisma Documentation](https://www.prisma.io/docs/)
|
||||
- [@feed@Explore top posts about Prisma](https://app.daily.dev/tags/prisma?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Prisma](https://app.daily.dev/tags/prisma?ref=roadmapsh)
|
||||
@@ -5,4 +5,4 @@
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@process.argv](https://nodejs.org/docs/latest/api/process.html#processargv)
|
||||
- [@video@Command Line Arguments - Cave of Programming](https://youtu.be/nr7i2HOAjeE)
|
||||
- [@video@Command Line Arguments - Cave of Programming](https://youtu.be/nr7i2HOAjeE)
|
||||
@@ -5,4 +5,4 @@ The `process.cwd()` method returns the current working directory of the Node.js
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@process.cwd()](https://nodejs.org/api/process.html#processcwd)
|
||||
- [@article@Whats the difference between process.cwd() vs \_\_dirname?](https://stackoverflow.com/questions/9874382/whats-the-difference-between-process-cwd-vs-dirname)
|
||||
- [@article@Whats the difference between process.cwd() vs __dirname?](https://stackoverflow.com/questions/9874382/whats-the-difference-between-process-cwd-vs-dirname)
|
||||
@@ -6,4 +6,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Understanding Process.NextTick()](https://nodejs.org/en/learn/asynchronous-work/understanding-processnexttick)
|
||||
- [@official@The Node.js process.nextTick()](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/)
|
||||
- [@video@The process.nextTick Function](https://www.youtube.com/watch?v=-niA5XOlCWI)
|
||||
- [@video@The process.nextTick Function](https://www.youtube.com/watch?v=-niA5XOlCWI)
|
||||
@@ -1,8 +1,9 @@
|
||||
# Process stdin
|
||||
# process.stdin
|
||||
|
||||
The `process.stdin` is a standard Readable stream which listens for user input and is accessible via the process module. It uses `on()` function to listen for input events.
|
||||
`process.stdin` is a stream in Node.js that represents the standard input, typically the keyboard. It allows your Node.js programs to receive text input from the command line. The `readline` module provides a convenient interface for reading input from `process.stdin` line by line, making it easier to handle user input in interactive command-line applications.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@process.stdin](https://nodejs.org/api/process.html#processstdin)
|
||||
- [@article@Node.js Process stdin & stdout](https://nodecli.com/node-stdin-stdout)
|
||||
- [@official@Accept input from the command line in Node.js](https://nodejs.org/en/learn/command-line/accept-input-from-the-command-line-in-nodejs#accept-input-from-the-command-line-in-nodejs)
|
||||
- [@article@Node.js Process stdin & stdout](https://nodecli.com/node-stdin-stdout)
|
||||
@@ -14,6 +14,6 @@ Using resolve() and reject(), we can communicate back to the caller what the res
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Promise Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
||||
- [@official@Promises](https://www.promisejs.org/)
|
||||
- [@video@Asynchronous JavaScript - Promises](https://www.youtube.com/watch?v=a_8nrslImo4/)
|
||||
- [@article@Promise Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
||||
- [@video@Asynchronous JavaScript - Promises](https://www.youtube.com/watch?v=a_8nrslImo4/)
|
||||
@@ -4,4 +4,4 @@ Prompts is a higher level and user friendly interface built on top of Node.js's
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Prompts](https://www.npmjs.com/package/prompts)
|
||||
- [@official@Prompts](https://www.npmjs.com/package/prompts)
|
||||
@@ -8,5 +8,5 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Getting started with PugJs](https://pugjs.org/api/getting-started.html)
|
||||
- [@article@How to Build a Node Application Using a Pug Template](https://blog.bitsrc.io/how-to-build-a-node-application-using-a-pug-template-7319ab1bba69?gi=40b338891148)
|
||||
- [@video@Node.js + Express - Tutorial - PugJS Templating Engine](https://www.youtube.com/watch?v=DSp9ExFw3Ig)
|
||||
- [@article@Pug.js tutorial](https://zetcode.com/javascript/pugjs/)
|
||||
- [@video@Node.js + Express - Tutorial - PugJS Templating Engine](https://www.youtube.com/watch?v=DSp9ExFw3Ig)
|
||||
@@ -5,4 +5,4 @@ The usual way to run a Node.js program is to run the globally available `node` c
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Run Node.js from Command Line](https://nodejs.org/en/learn/command-line/run-nodejs-scripts-from-the-command-line/)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -4,5 +4,5 @@ In Node.js, npm scripts are used for the purpose of initiating a server, startin
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Example of Running Scripts](https://riptutorial.com/node-js/example/4592/running-scripts)
|
||||
- [@official@Running Scripts](https://docs.npmjs.com/cli/using-npm/scripts)
|
||||
- [@article@Example of Running Scripts](https://riptutorial.com/node-js/example/4592/running-scripts)
|
||||
@@ -2,22 +2,23 @@
|
||||
|
||||
Semantic Versioning is a standard for versioning software that's widely adopted in the npm ecosystem. It provides a clear and consistent way to communicate changes in a software package to users.
|
||||
|
||||
## Version Format
|
||||
Version Format
|
||||
--------------
|
||||
|
||||
A semantic version number consists of three parts separated by dots:
|
||||
|
||||
- MAJOR: Incremented when there are incompatible API changes.
|
||||
- MINOR: Incremented when new functionality is added in a backwards-compatible manner.
|
||||
- PATCH: Incremented when bug fixes are made without affecting the API.
|
||||
* MAJOR: Incremented when there are incompatible API changes.
|
||||
* MINOR: Incremented when new functionality is added in a backwards-compatible manner.
|
||||
* PATCH: Incremented when bug fixes are made without affecting the API.
|
||||
|
||||
### Example: 1.2.3
|
||||
|
||||
- 1 is the major version.
|
||||
- 2 is the minor version.
|
||||
- 3 is the patch version.
|
||||
* 1 is the major version.
|
||||
* 2 is the minor version.
|
||||
* 3 is the patch version.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Semver.org](https://semver.org/)
|
||||
- [@article@Medium - Understanding Semantic Versioning](https://medium.com/codex/understanding-semantic-versioning-a-guide-for-developers-dad5f2b70583)
|
||||
- [@article@Devopedia - Semver](https://devopedia.org/semantic-versioning)
|
||||
- [@article@Devopedia - Semver](https://devopedia.org/semantic-versioning)
|
||||
@@ -12,4 +12,4 @@ Visit the following resources to learn more:
|
||||
- [@official@Sequelize - NPM Package](https://www.npmjs.com/package/sequelize)
|
||||
- [@official@Sequelize Docs](https://sequelize.org/docs/v6/getting-started/)
|
||||
- [@article@Getting started with Sequelize](https://levelup.gitconnected.com/the-ultimate-guide-to-get-started-with-sequelize-orm-238588d3516e)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -5,4 +5,4 @@ The `setImmediate` function delays the execution of a function to be called afte
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Understanding setImmediate](https://nodejs.org/en/learn/asynchronous-work/understanding-setimmediate)
|
||||
- [@article@Understanding setImmediate](https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate)
|
||||
- [@article@Understanding setImmediate](https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate)
|
||||
@@ -6,4 +6,4 @@ The `setInterval()` method helps us to repeatedly execute a function after a fix
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Scheduling: setTimeout and setInterval](https://javascript.info/settimeout-setinterval)
|
||||
- [@article@Scheduling: setTimeout and setInterval](https://javascript.info/settimeout-setinterval)
|
||||
@@ -1,9 +1,8 @@
|
||||
# Process stdout
|
||||
|
||||
The `process.stdout` property is an inbuilt application programming interface of the process module which is used to send data out of our program. A Writable Stream to stdout. It implements a `write()` method.
|
||||
`console.log()` prints to the `process.stdout.write()` with formatted output or new line.
|
||||
The `process.stdout` property is an inbuilt application programming interface of the process module which is used to send data out of our program. A Writable Stream to stdout. It implements a `write()` method. `console.log()` prints to the `process.stdout.write()` with formatted output or new line.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@process.stdout](https://nodejs.org/api/process.html#processstdout)
|
||||
- [@article@process.stdout vs console.log](https://stackoverflow.com/questions/4976466/difference-between-process-stdout-write-and-console-log-in-node-js/4984464#4984464)
|
||||
- [@article@process.stdout vs console.log](https://stackoverflow.com/questions/4976466/difference-between-process-stdout-write-and-console-log-in-node-js/4984464#4984464)
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
Streams are a type of data handling methods and are used to read, write or transform chunks of data piece by piece without keeping it in memory all at once. There are four types of streams in Node.js.
|
||||
|
||||
- **Readable**: streams from which data can be read.
|
||||
- **Writable**: streams to which we can write data.
|
||||
- **Duplex**: streams that are both Readable and Writable.
|
||||
- **Transform**: streams that can modify or transform the data as it is written and read.
|
||||
* **Readable**: streams from which data can be read.
|
||||
* **Writable**: streams to which we can write data.
|
||||
* **Duplex**: streams that are both Readable and Writable.
|
||||
* **Transform**: streams that can modify or transform the data as it is written and read.
|
||||
|
||||
Multiple streams can be chained together using `pipe()` method.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Stream API Documentation](https://nodejs.org/api/stream.html)
|
||||
- [@video@Node.js Streams tutorial](https://www.youtube.com/watch?v=GlybFFMXXmQ)
|
||||
- [@article@Understanding Streams in Node.js](https://nodesource.com/blog/understanding-streams-in-nodejs)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@video@Node.js Streams tutorial](https://www.youtube.com/watch?v=GlybFFMXXmQ)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -1,25 +1,24 @@
|
||||
# System Errors
|
||||
|
||||
Node.js generates system errors when exceptions occur within its runtime environment. These usually occur when an application violates an operating system constraint.
|
||||
For example, a system error will occur if an application attempts to read a file that does not exist.
|
||||
Node.js generates system errors when exceptions occur within its runtime environment. These usually occur when an application violates an operating system constraint. For example, a system error will occur if an application attempts to read a file that does not exist.
|
||||
|
||||
Below are the system errors commonly encountered when writing a Node.js program:
|
||||
|
||||
1. EACCES - Permission denied
|
||||
2. EADDRINUSE - Address already in use
|
||||
3. ECONNRESET - Connection reset by peer
|
||||
4. EEXIST - File exists
|
||||
5. EISDIR - Is a directory
|
||||
6. EMFILE - Too many open files in system
|
||||
7. ENOENT - No such file or directory
|
||||
8. ENOTDIR - Not a directory
|
||||
9. ENOTEMPTY - Directory not empty
|
||||
10. ENOTFOUND - DNS lookup failed
|
||||
11. EPERM - Operation not permitted
|
||||
12. EPIPE - Broken Pipe
|
||||
13. ETIMEDOUT - Operation timed out
|
||||
1. EACCES - Permission denied
|
||||
2. EADDRINUSE - Address already in use
|
||||
3. ECONNRESET - Connection reset by peer
|
||||
4. EEXIST - File exists
|
||||
5. EISDIR - Is a directory
|
||||
6. EMFILE - Too many open files in system
|
||||
7. ENOENT - No such file or directory
|
||||
8. ENOTDIR - Not a directory
|
||||
9. ENOTEMPTY - Directory not empty
|
||||
10. ENOTFOUND - DNS lookup failed
|
||||
11. EPERM - Operation not permitted
|
||||
12. EPIPE - Broken Pipe
|
||||
13. ETIMEDOUT - Operation timed out
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Node.js Errors](https://nodejs.org/api/errors.html#errors_class_systemerror)
|
||||
- [@Article@16 Common Errors in Node.js and How to Fix Them](https://betterstack.com/community/guides/scaling-nodejs/nodejs-errors/)
|
||||
- [@article@@Article@16 Common Errors in Node.js and How to Fix Them](https://betterstack.com/community/guides/scaling-nodejs/nodejs-errors/)
|
||||
@@ -4,15 +4,15 @@ Template engine helps us to create an HTML template with minimal code. Also, it
|
||||
|
||||
Some examples of template engines in Node.js are:
|
||||
|
||||
- Nunjucks
|
||||
- Jade
|
||||
- Vash
|
||||
- EJS
|
||||
- Handlebars
|
||||
- HAML
|
||||
* Nunjucks
|
||||
* Jade
|
||||
* Vash
|
||||
* EJS
|
||||
* Handlebars
|
||||
* HAML
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Getting Started with Pug](https://pugjs.org/api/getting-started.html)
|
||||
- [@official@Handlebars Package](https://www.npmjs.com/package/handlebars)
|
||||
- [@official@EJS Package](https://www.npmjs.com/package/ejs)
|
||||
- [@official@EJS Package](https://www.npmjs.com/package/ejs)
|
||||
@@ -6,6 +6,6 @@ The two most common testing approaches are unit testing and end-to-end testing.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Software Testing](https://en.wikipedia.org/wiki/Software_testing)
|
||||
- [@official@Vitest](https://vitest.dev/)
|
||||
- [@official@Jest](https://jest.io)
|
||||
- [@article@Software Testing](https://en.wikipedia.org/wiki/Software_testing)
|
||||
@@ -5,4 +5,4 @@ Node.js is a single-threaded language and gives us ways to work parallelly to ou
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Single Thread vs Child Process vs Worker Threads vs Cluster in Node.js](https://alvinlal.netlify.app/blog/single-thread-vs-child-process-vs-worker-threads-vs-cluster-in-nodejs)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
- [@feed@Explore top posts about Node.js](https://app.daily.dev/tags/nodejs?ref=roadmapsh)
|
||||
@@ -5,4 +5,4 @@ TypeORM is an ORM that can run in NodeJS, Browser, Cordova, PhoneGap, Ionic, Rea
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@TypeORM Docs](https://typeorm.io)
|
||||
- [@video@TypeORM Crash Course](https://www.youtube.com/watch?v=JaTbzPcyiOE)
|
||||
- [@video@TypeORM Crash Course](https://www.youtube.com/watch?v=JaTbzPcyiOE)
|
||||
@@ -8,4 +8,4 @@ Visit the following resources to learn more:
|
||||
|
||||
- [@official@Uncaught Exception Error Events](https://nodejs.org/api/process.html#event-uncaughtexception)
|
||||
- [@article@Let It Crash: Best Practices for Handling Node.js Errors on Shutdown](https://blog.heroku.com/best-practices-nodejs-errors)
|
||||
- [@article@Uncaught Exceptions in Node.js](https://shapeshed.com/uncaught-exceptions-in-node/)
|
||||
- [@article@Uncaught Exceptions in Node.js](https://shapeshed.com/uncaught-exceptions-in-node/)
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user