parent
a0c49edc80
commit
4dc4bfb9ee
134 changed files with 6566 additions and 12373 deletions
@ -0,0 +1 @@ |
|||||||
|
# --watch |
@ -1,7 +0,0 @@ |
|||||||
# Using Packages |
|
||||||
|
|
||||||
Open source Node modules are very powerful as you can instantly get access to the functionality that you’d otherwise have to write yourself. We normally use CommonJS or ESM to import an installed package. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@article@How to import and use npm modules](https://learn.coderslang.com/0014-how-to-import-and-use-npm-modules/) |
|
@ -1,10 +0,0 @@ |
|||||||
# Error types |
|
||||||
|
|
||||||
Programming errors refer to situations that prevent a program from working properly. |
|
||||||
Experiencing different types of errors in programming is a huge part of the development process. |
|
||||||
Knowing the difference in types of errors and the reasons for them will make it easier for you to identify the necessary part of the code and solve the problem correctly. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@official@Node.js Errors](https://nodejs.org/api/errors.html) |
|
||||||
- [@article@MDN: JavaScript Error Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) |
|
@ -1,7 +0,0 @@ |
|||||||
# process.stderr |
|
||||||
|
|
||||||
The `process.stderr` property is an inbuilt application programming interface of the process module that returns a stream connected to the Standard Error Stream (`stderr`). `console.error()` prints to `process.stderr.write()` with formatted output or a new line. This stream is connected to file descriptor 2 (fd `2`), which is conventionally used for error messages and diagnostics. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@official@process.stderr](https://nodejs.org/api/process.html#processstderr) |
|
@ -1,7 +0,0 @@ |
|||||||
# Printing output |
|
||||||
|
|
||||||
Printing output in Node.js command-line applications is a fundamental aspect of communicating with users and displaying information. You can print output using `process.stdout`, `process.stderr` or simple `console.*` functions. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@official@Output to the command line using Node.js](https://nodejs.org/en/learn/command-line/output-to-the-command-line-using-nodejs) |
|
@ -1,5 +0,0 @@ |
|||||||
# Taking input |
|
||||||
|
|
||||||
Node.js provides a few ways to take inputs from user, including the built-in `process.stdin` and `readline` module. There are also several third party packages like `prompts` and `Enquirer` built on top of `readline` that provide an easy to use and intuitive interface. |
|
||||||
|
|
||||||
- [@article@How to read from stdin line by line in Node](https://stackoverflow.com/questions/20086849/how-to-read-from-stdin-line-by-line-in-node) |
|
@ -1,7 +0,0 @@ |
|||||||
# Command line args |
|
||||||
|
|
||||||
In the CLI (Command Line Interface) world, command line arguments (args) provide additional information to a Node.js program when executed, enabling flexibility and customization. They are managed using `process.argv` in Node.js, or with npm packages like `commander.js` and `yargs` for enhanced argument parsing. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@article@How To Handle Command-line Arguments in Node.js Scripts](https://www.digitalocean.com/community/tutorials/nodejs-command-line-arguments-node-scripts) |
|
@ -1,8 +0,0 @@ |
|||||||
# Environment variables |
|
||||||
|
|
||||||
Environment variables in Node.js are key-value pairs used to configure applications based on their runtime environment. Accessed via `process.env`, they enable developers to manage settings, handle sensitive data securely, and adapt application behavior across various deployment environments such as development, testing, and production. Tools like `dotenv` simplify loading environment variables from a `.env` file, enhancing configuration management in Node.js applications. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@official@Node.js Learn environment variables](https://www.digitalocean.com/community/tutorials/nodejs-command-line-arguments-node-scripts) |
|
||||||
- [@article@Node.js Everywhere with Environment Variables!](https://medium.com/the-node-js-collection/making-your-node-js-work-everywhere-with-environment-variables-2da8cdf6e786) |
|
@ -1,8 +0,0 @@ |
|||||||
# Http module |
|
||||||
|
|
||||||
To make HTTP requests in Node.js, there is a built-in module HTTP in Node.js to transfer data over the HTTP. To use the HTTP server in node, we need to require the HTTP module using `require()` method. The HTTP module creates an HTTP server that listens to server ports and gives a response back to the client. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@article@How To Create a Web Server in Node.js with the HTTP Module](https://www.digitalocean.com/community/tutorials/how-to-create-a-web-server-in-node-js-with-the-http-module) |
|
||||||
- [@official@The Node.js Http Module](https://nodejs.org/docs/latest/api/http.html) |
|
@ -1,7 +0,0 @@ |
|||||||
# unfetch |
|
||||||
|
|
||||||
unfetch is a tiny 500b fetch "barely-polyfill" |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@opensource@unfetch Docs](https://github.com/developit/unfetch#readme) |
|
@ -1,10 +0,0 @@ |
|||||||
# AdonisJS |
|
||||||
|
|
||||||
AdonisJS is a Node.js web framework focused on providing the best way to create a web app or an API server, inspired by Laravel. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@official@AdonisJS Website](https://adonisjs.com/) |
|
||||||
- [@article@AdonisJS Official Documentations](https://docs.adonisjs.com/guides/introduction) |
|
||||||
- [@video@Beginner AdonisJS Tutorial](https://www.youtube.com/watch?v=VIvBeEj9QVg\&list=PL9gT3zlT0C1Ngrii-NCPpuRvUO1mIGzwf) |
|
||||||
- [@feed@Explore top posts about JavaScript](https://app.daily.dev/tags/javascript?ref=roadmapsh) |
|
@ -1,3 +0,0 @@ |
|||||||
# Relational |
|
||||||
|
|
||||||
A relational database is a (most commonly digital) database based on the relational model of data, as proposed by E. F. Codd in 1970. A system used to maintain relational databases is a relational database management system (RDBMS). Many relational database systems are equipped with the option of using the SQL (Structured Query Language) for querying and maintaining the database. |
|
@ -1,7 +0,0 @@ |
|||||||
# Document |
|
||||||
|
|
||||||
A document database is a type of nonrelational database that is designed to store and query data as JSON-like documents. Document databases make it easier for developers to store and query data in a database by using the same document-model format they use in their application code. The flexible, semistructured, and hierarchical nature of documents and document databases allows them to evolve with applications’ needs. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@article@What Is a Document Database?](https://aws.amazon.com/nosql/document/) |
|
@ -1,10 +0,0 @@ |
|||||||
# Mocha |
|
||||||
|
|
||||||
Mocha is an open source JavaScript test framework running on Nodejs and in the browser, making asynchronous testing simple and fun, and it's a great candidate for BDD (Behavior Driven Development). |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@official@Official Website](https://www.npmjs.com/package/mocha) |
|
||||||
- [@article@Mocha Documentation](https://mochajs.org/) |
|
||||||
- [@video@Mocha Tutorial](https://youtube.com/playlist?list=PLgbtO1Bcz4C-vU0JLfDBsZGbSUdNX4mQ8) |
|
||||||
- [@feed@Explore top posts about Testing](https://app.daily.dev/tags/testing?ref=roadmapsh) |
|
@ -1,7 +0,0 @@ |
|||||||
# Forever |
|
||||||
|
|
||||||
Forever is a node.js package for ensuring that a given script runs continuously (i.e. forever) even when the server crash/stops. A CLI tool for the production environment to manage the Node applications and their processes. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@official@Forever package documentation](https://www.npmjs.com/package/forever) |
|
@ -1,7 +0,0 @@ |
|||||||
# Nohup |
|
||||||
|
|
||||||
Nohup, short for no hang up is a command in Linux systems that keep processes running, will ignore the SIGHUP signal even after exiting the shell or terminal. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@article@Nohup command](https://www.digitalocean.com/community/tutorials/nohup-command-in-linux) |
|
@ -1,31 +0,0 @@ |
|||||||
# Builtin modules |
|
||||||
|
|
||||||
Built-in modules are already installed with `Node.js`, so you don't need to install them with any package manager (yarn, npm, etc.). |
|
||||||
|
|
||||||
- **fs**: dealing with the system files. |
|
||||||
- **os**: provides information about the operation system. |
|
||||||
- **net**: to build clients and servers. |
|
||||||
- **path**: to handle file paths. |
|
||||||
- **url**: help in parsing URL strings. |
|
||||||
- **http**: making Node.js transfer data over HTTP. |
|
||||||
- **console**: to log information in the console. |
|
||||||
- **assert**: provides a set of assertion tests. |
|
||||||
- **process**: provides information about, and control over, the current process. |
|
||||||
- **cluster**: able to creating child processes that runs simultaneously and share the same server port. |
|
||||||
- **perf_hooks**: provides APIs for performance measurement |
|
||||||
- **crypto**: to handle OpenSSL cryptographic functions. |
|
||||||
- **Buffer**: provides APIs to handling streams of binary data. |
|
||||||
- **DNS**: enables name resolution. |
|
||||||
- **events**: for handling existing events and creating custom events. |
|
||||||
- **child_processes**: provides the ability to spawn subprocesses. |
|
||||||
- **REPL**: provides a Read-Eval-Print-Loop (REPL) implementation that is available both as a standalone program or includible in other applications. |
|
||||||
- **readline**: provides an interface for reading data from a Readable stream one line at a time. |
|
||||||
- **util**: supports the needs of Node.js internal APIs. |
|
||||||
- **querystring**: provides utilities for parsing and formatting URL query strings. |
|
||||||
- **string_decoder**: provides an API for decoding Buffer objects into strings. |
|
||||||
- **tls**: provides an implementation of the Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols. |
|
||||||
|
|
||||||
Visit the following resources to learn more: |
|
||||||
|
|
||||||
- [@official@API documentation of Built-in modules](https://nodejs.org/api/modules.html) |
|
||||||
- [@article@Built-in modules - w3schools](https://www.w3schools.com/nodejs/ref_modules.asp) |
|
@ -0,0 +1 @@ |
|||||||
|
# Drizzle |
@ -0,0 +1 @@ |
|||||||
|
# ESM |
@ -0,0 +1 @@ |
|||||||
|
# fetch |
@ -0,0 +1 @@ |
|||||||
|
# Hono |
@ -0,0 +1 @@ |
|||||||
|
# ky |
@ -0,0 +1 @@ |
|||||||
|
# Local Installation |
@ -0,0 +1 @@ |
|||||||
|
# node:test |
@ -0,0 +1 @@ |
|||||||
|
# Playwright |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue