1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 20:21:50 +02:00

Update content for streams and taking input (#2272)

This commit is contained in:
Shivam Kotak
2022-10-08 18:46:00 +05:30
committed by GitHub
parent 2124c0eed7
commit c1b9074a30
4 changed files with 40 additions and 4 deletions

View File

@@ -1 +1,8 @@
# 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.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://nodejs.org/api/process.html#processstdin'>Official Documentation</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.geeksforgeeks.org/node-js-process-stdin-property'>Node.js process.stdin Property</BadgeLink>

View File

@@ -1 +1,7 @@
# Prompts # Prompts
Prompts is a higher level and user friendly interface built on top of Node.js's inbuilt `Readline` module. It supports different type of prompts such as text, password, autocomplete, date, etc. It is an interactive module and comes with inbuilt validation support.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://www.npmjs.com/package/prompts'>Official Documentation</BadgeLink>

View File

@@ -1 +1,9 @@
# Inquirer # 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.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://www.npmjs.com/package/inquirer'>Official Documentation</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=0xjfkl9nODQ'>How to make a CLI in Node.js with Inquirer</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.digitalocean.com/community/tutorials/nodejs-interactive-command-line-prompts'>How To Create Interactive Command-line Prompts with Inquirer.js</BadgeLink>

View File

@@ -1 +1,16 @@
# Nodejs streams # Nodejs streams
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.
Multiple streams can be chained together using `pipe()` method.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://nodejs.org/api/stream.html'>Stream API Official Documentation</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=GlybFFMXXmQ'>Node.js Streams tutorial</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://nodesource.com/blog/understanding-streams-in-nodejs'>Understanding Streams in Node.js</BadgeLink>