Skip to content

πŸŽ“ This repository contains examples that I have done for my own preparation for the Nodej.js certification exam - Application Developer (JSNAD).

License

Notifications You must be signed in to change notification settings

Ramona-Ekanayake/nodejs-certification

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

97 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation



My own preparation for Node.js Certification

πŸŽ“ This repository contains examples that I have done for my own preparation for the Node.js certification exam - Application Developer (JSNAD).

This content is not official from the OpenJS Foundation or from Node.js.



πŸ”– Description

I have been working in this repository for several months. I have wanted to share OpenSource examples that I have developed for my own preparation. These examples are organized by folders for each Node.js API.

πŸ“– Temary

Usage & Example
Assertion Testing
Buffer
Child Processes
Cluster
Console
ECMAScript Modules
Errors
Events
File System
HTTP
HTTP/2
HTTPS
Inspector
Internationalization
Modules
Net
OS
Path
Performance Hooks
Process
Query Strings
Readline
REPL
Report
Stream
Timers
Utilities
V8
VM
Worker Threads
Zlib

πŸ’ͺ JSNAD Domains & Competencies

  • Buffer and Streams – 11%
    • Node.js Buffer API’s
    • Incremental Processing
    • Transforming Data
    • Connecting Streams
  • Control flow – 12%
    • Managing asynchronous operations
    • Control flow abstractions
  • Child Processes – 8%
    • Spawning or Executing child processes
    • Child process configuration
  • Diagnostics – 6%
    • Debugging Node.js
    • Basic performance analysis
  • Error Handling – 8%
    • Common patterns
    • Handling errors in various scenarios
  • Node.js CLI – 4%
    • Node executable command line flags
  • Events – 11%
    • The event system
    • Building event emitters
    • Consuming event emitters
  • File System – 8%
    • Input/output
    • Watching
  • JavaScript Prerequisites – 7%
    • Language fundamentals
    • Scoped to core language features introduced since EcmaScript 1 and still heavily used today
  • Module system – 7%
    • CommonJS Module System only
  • Process/Operating System – 6%
    • Controlling the process
    • Getting system data
  • Package.json – 6%
    • Package configuration
    • Dependency management
  • Unit Testing – 6%
    • Using assertions
    • Testing synchronous code
    • Testing asynchronous code

🌍 Websites of Interest

πŸ“Œ Methodologies and Guidelines

ESTlint, tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
NPM ESLint
NPM ESLint | Airbnb

βœ… Prerequisites

In order to work with this project, your local environment must have at least the following versions:

  • NodeJS Version: 14.xx
  • NPM Version: 6.14.7

πŸ“ How to work with this project

Install Dependencies

$npm i

Running the App

$node ./src/'folder'/'file.js'

Generate the SSL Certificate for localhost

# If you want use http2 you need generate localhost certificate
$openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -keyout localhost-privkey.pem -out localhost-cert.pem

πŸ“‚ Code scaffolding

/
β”œβ”€β”€ assets 🌈                     # Images Sources.
|   └── ...                       # ...
|   |
β”œβ”€β”€ env πŸ”Œ                        # Configure enviroments deploy.
|   └── ...                       # ...
|   |
β”œβ”€β”€ src πŸ’―
|   β”œβ”€β”€ usage-example             # Usage & Example.
|   |   β”œβ”€β”€ example01             # Http server return pain text.
|   |   └── example02             # Http server return json object.
|   |
|   β”œβ”€β”€ assertion-testing         # Assertion Testing.  
|   |   β”œβ”€β”€ example01             # Equal numbers or not with assert.strictEqual method.
|   |   β”œβ”€β”€ example02             # Equal numbers and string or not with assert.equal method.
|   |   β”œβ”€β”€ example03             # Equal arrays values and structure or not with strict.deepEqual method.
|   |   β”œβ”€β”€ example04             # Equal objects values and structure or not with strict.deepEqual method.
|   |   └── example05             # Http request with Reject results and objects results with structure and typeof control.
|   |
|   β”œβ”€β”€ async-hooks               # Async Hooks.
|   |   β”œβ”€β”€ example01             # Create http server with external request to get content. This functions launch async hooks and save into .log file.
|   |   β”œβ”€β”€ test.log              # Log example file.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ buffer                    # Buffer.
|   |   β”œβ”€β”€ example01             # Create first safe and not Buffer empty and with string.
|   |   β”œβ”€β”€ example02             # Get length of string and buffer string.
|   |   β”œβ”€β”€ example03             # Is Buffer and is Encoding functions.
|   |   β”œβ”€β”€ example04             # Work with compare, concat, equal, includes, indexOf, lastIndeOf, keys and slice functions.
|   |   β”œβ”€β”€ example05             # Work with toString and toJSON functions.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ child-processes           # Child Processes.
|   |   β”œβ”€β”€ example01             # spawn function.
|   |   β”œβ”€β”€ example02             # exec and execSync functions.
|   |   β”œβ”€β”€ example03             # spawn and spawnSync functions.
|   |   β”œβ”€β”€ example04             # exec and spawn functions with custom sh file.
|   |   β”œβ”€β”€ example05             # exec and spawn functions with magick tool (you need install imagemagick library).
|   |   β”œβ”€β”€ example06             # execFile and execFileSync functions.
|   |   β”œβ”€β”€ example07             # fork function with example messages to childs.
|   |   β”œβ”€β”€ example07-sub01       # sub process message fork function.
|   |   β”œβ”€β”€ example07-sub01       # sub process message fork function.
|   |   β”œβ”€β”€ example08             # fork function with process ls and sh.
|   |   β”œβ”€β”€ example08-sub01       # sub process spawnSync ls fork function.
|   |   β”œβ”€β”€ example08-sub01       # sub process spawnSync sh fork function.
|   |   β”œβ”€β”€ test.sh               # Sh example file.
|   |   β”œβ”€β”€ cat.jpg               # Image cat example.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ cluster                   # Cluster.
|   |   β”œβ”€β”€ example01             # Show CPUs number and create a cluster for each core.
|   |   β”œβ”€β”€ example02             # Control cluster waiting or working any task.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ console                   # Console.
|   |   β”œβ”€β”€ example01             # Basic console log, error and warn.
|   |   β”œβ”€β”€ example02             # Console log with params added.
|   |   β”œβ”€β”€ example03             # Show and get log and save into .log files (out and error files).
|   |   β”œβ”€β”€ example04             # Clear console with setTimeout into async function.
|   |   β”œβ”€β”€ example05             # Assert, count, countReset.
|   |   β”œβ”€β”€ example06             # Group and groupEnd.
|   |   β”œβ”€β”€ example07             # Time and timeEnd.
|   |   β”œβ”€β”€ example08             # Table with arrays of numbers, objects and more arrays of strings.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ esm                       # ECMAScript Modules.
|   |   β”œβ”€β”€ example01             # Import esm module with .js extension file.
|   |   β”œβ”€β”€ example02             # Import esm module from "libs" folder into your js application with .js extension file.
|   |   β”œβ”€β”€ example03             # Import esm submodule from "libs" folder into your js application with .js extension file.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ errors                    # Errors.
|   |   β”œβ”€β”€ example01             # Variable no defined into try/catch.
|   |   β”œβ”€β”€ example02             # With properties of an object in try/catch.
|   |   β”œβ”€β”€ example03             # In callback functions.
|   |   β”œβ”€β”€ example04             # In try/catch with async and sync functions.
|   |   β”œβ”€β”€ example05             # Custom message Error into throw.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ events                    # Events.
|   |   β”œβ”€β”€ example01             # Differents instances and times.
|   |   β”œβ”€β”€ example02             # Define arguments and show.
|   |   β”œβ”€β”€ example03             # Extends class EventEmitter and create main scope with custom properties.
|   |   β”œβ”€β”€ example04             # What happens to the functions: setTimeout, setImmediate and process.nextTick.
|   |   β”œβ”€β”€ example05             # Handling events only once.
|   |   β”œβ”€β”€ example06             # Remove event with removeListener.
|   |   β”œβ”€β”€ example07             # Set Max Listeners to event with setMaxListeners.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ file-system               # File System.
|   |   β”œβ”€β”€ example01             # Open and close file by name with concrete path.
|   |   β”œβ”€β”€ example02             # Open and close with Url and Buffer.
|   |   β”œβ”€β”€ example03             # Get File Descriptors with stat function from json and txt files.
|   |   β”œβ”€β”€ example04             # Open folder and file details with opendirSync and openSync functions.
|   |   β”œβ”€β”€ example05             # Read folder and file content with readdirSync and readFileSync functions.
|   |   β”œβ”€β”€ example06             # Get folder content with Callback, Sync and Promises.
|   |   β”œβ”€β”€ example07             # Get file list of folder and content files with Sync.
|   |   β”œβ”€β”€ example08             # Get if directory is or not directory and file is or not file.
|   |   β”œβ”€β”€ example09             # Access function for get if file exist or not.
|   |   β”œβ”€β”€ example10             # Append function for include new data inside file.
|   |   β”œβ”€β”€ example11             # Chmod function for set and change permissions of a file.
|   |   β”œβ”€β”€ example12             # Chown function for set and change owner and group of a file.
|   |   β”œβ”€β”€ example13             # Copy function for copy file from origin to destination.
|   |   β”œβ”€β”€ example14             # Create Read Stream from file for get all content and others.
|   |   β”œβ”€β”€ example15             # Create file and Write Stream of new file for save all content.
|   |   β”œβ”€β”€ example16             # Create symbolic link with link function.
|   |   β”œβ”€β”€ example17             # Create directories with mkdir, mkdirSync.
|   |   β”œβ”€β”€ example18             # Create temp directories with mkdtemp and mkdtempSync.
|   |   β”œβ”€β”€ example19             # Rename file with rename and renameSync functions.
|   |   β”œβ”€β”€ example20             # Remove folders with rmdir and rmdirSync functions with recursive option.
|   |   β”œβ”€β”€ example21             # Remove files with unlink and unlinkSync functions.
|   |   β”œβ”€β”€ example22             # Create listener for get if change the folder and files content.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ http                      # HTTP.
|   |   β”œβ”€β”€ example01             # Get methods and status codes from http.
|   |   β”œβ”€β”€ example02             # Create http server and show lifecycle-events.
|   |   β”œβ”€β”€ example03             # Create http server with custom routers and reponses for POST or GET methods.
|   |   β”œβ”€β”€ example04             # Request to url with method GET and port 80 and received JSON object.
|   |   β”œβ”€β”€ example05             # Request to url with method POST and port 80 send and received JSON object.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ http2                     # HTTP2.
|   |   β”œβ”€β”€ example01             # Create http2 server and response html elements.
|   |   β”œβ”€β”€ example02             # Create http2 server and show lifecycle-events.
|   |   β”œβ”€β”€ example03             # Create http and http2 server and see all differences.
|   |   |   β”œβ”€β”€ example03-http    # Create http server and return static file. See that the connection open and close for each request.
|   |   |   └── example03-https   # Create http2 server and return static file. See that the connection open one time and not close for each request.
|   |   β”œβ”€β”€ example04             # Create http2 server and with html file and push css and js file.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ https                     # HTTPS.
|   |   β”œβ”€β”€ example01             # Create https server and response html elements.
|   |   β”œβ”€β”€ example02             # Request to url with method GET and port 443 and received JSON object.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ inspector                 # Inspector.
|   |   β”œβ”€β”€ example01             # Create inspector instance and config host and port.
|   |   β”œβ”€β”€ example02             # Send console log, warn, info and error.
|   |   β”œβ”€β”€ example03             # Send console table.
|   |   β”œβ”€β”€ example04             # Create new session for any inspector and report via console.
|   |   β”œβ”€β”€ example05             # Create new session for any inspector and write profile.cpuprofile file.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ intl                      # Internationalization.
|   |   β”œβ”€β”€ example01             # toLowerCase and toUpperCase functions with String.
|   |   β”œβ”€β”€ example02             # Collator functions for get order string and sort string by order.
|   |   β”œβ”€β”€ example03             # DateTimeFormat for get date with differents languaje and formats.
|   |   β”œβ”€β”€ example04             # NumberFormat for format numbers with differents languaje and formats.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ modules                   # Modules.
|   |   β”œβ”€β”€ example01             # Module Exports and Require consts with strings values.
|   |   β”œβ”€β”€ example02             # Module Exports and Require function for sum two digits.
|   |   β”œβ”€β”€ example03             # Module Exports and Require class with methods.
|   |   β”œβ”€β”€ example04             # Module Exports and Require classes extends with methods.
|   |   β”œβ”€β”€ example05             # Module Exports and Require classes extends with static method.
|   |   β”œβ”€β”€ example06             # Export Default and Import class extends with static method.
|   |   β”œβ”€β”€ example07             # Export and Import classes extends with static method.
|   |   β”œβ”€β”€ example08             # Two Require of the same Module assign with Require Cache just once.
|   |   β”œβ”€β”€ example09             # Require JS Module and JSON File.
|   |   β”œβ”€β”€ example10             # Require JS Module from folder with Package.json file.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ net                       # Net.
|   |   β”œβ”€β”€ example01             # Server and Client with emit messages and Close Socket Connection.
|   |   β”œβ”€β”€ example02             # Server and Client with severals messages from client Without Close Socket.
|   |   β”œβ”€β”€ example03             # Server and Two Clients send severals messages to all clientes Without Close Socket.
|   |   β”œβ”€β”€ example04             # Server and two clients and send Message to differents client Pear to Pear.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ os                        # OS.
|   |   β”œβ”€β”€ example01             # Get and show CPUs numbers and props.
|   |   β”œβ”€β”€ example02             # Get and show Free and Total System Memmory.
|   |   β”œβ”€β”€ example03             # Get and show Home Directory.
|   |   β”œβ”€β”€ example04             # Get and show Host Name Machine.
|   |   β”œβ”€β”€ example05             # Get and show Network Interfaces and props.
|   |   β”œβ”€β”€ example06             # Get and show Platform and Release.
|   |   β”œβ”€β”€ example07             # Get and show Temporal Directory.
|   |   β”œβ”€β”€ example08             # Get and show User Info.
|   |   β”œβ”€β”€ example09             # Get and show Operating System Constants.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ path                      # Path.
|   |   β”œβ”€β”€ example01             # Get Basename of current or specific folder.
|   |   β”œβ”€β”€ example02             # Use basename for get all internal files from folder and get basename of files.
|   |   β”œβ”€β”€ example03             # Use dirname for get the main folder and all internal files.
|   |   β”œβ”€β”€ example04             # Use extname for get extension of file name or all path.
|   |   β”œβ”€β”€ example05             # Get if any path is absolute.
|   |   β”œβ”€β”€ example06             # Use joins method for concat all string for create a correct path.
|   |   β”œβ”€β”€ example07             # Use normalize method for create corrects paths.
|   |   β”œβ”€β”€ example08             # Use parse method for get object with all properties of paths.
|   |   β”œβ”€β”€ example09             # Use relative method for compare two path and get an absolute path.
|   |   β”œβ”€β”€ example10             # Use sep method for generate array with split and resolve a structure with folders and files.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ perf-hooks                # Performance Hooks.
|   |   β”œβ”€β”€ example01             # Timer and measure for JSON parse and stringify functions examples.
|   |   β”œβ”€β”€ example02             # Timer and measure for Get all files from specific folders in a function with callback.
|   |   β”œβ”€β”€ example03             # Timer and timerify wrapper for Get all files from specific folder with function with callback.
|   |   β”œβ”€β”€ example04             # Timers with severals externals request https for others REST APIs.
|   |   β”œβ”€β”€ example05             # Show Measure and Mark timers with two Observers
|   |   β”œβ”€β”€ example06             # Get duration timer of severals require functions of modules.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ process                   # Process.
|   |   β”œβ”€β”€ example01             # Use beforeExit event for get when event loop has no additional work to schedule.
|   |   β”œβ”€β”€ example02             # Send message between procces, one http server and other write into file.
|   |   β”œβ”€β”€ example03             # Use multipleResolves event for tracking potential errors in an application while using the Promise constructor.
|   |   β”œβ”€β”€ example04             # Use multipleResolves event with Promise.race() method returns a promise that fulfills or rejects as soon as one of the promises.
|   |   β”œβ”€β”€ example05             # Use unhandledRejection event for get all promise without catch.
|   |   β”œβ”€β”€ example06             # Use uncaughtException event for get all error of function without try/catch control.
|   |   β”œβ”€β”€ example07             # Use warning event for example to get exceeded listener of Event Emitter.
|   |   β”œβ”€β”€ example08             # The argv property contain all arguments include via CLI.
|   |   β”œβ”€β”€ example09             # The process.cwd() method returns the current working directory of the Node.js process.
|   |   β”œβ”€β”€ example10             # The process.emitWarning() method can be used to emit custom or application specific process warnings.
|   |   β”œβ”€β”€ example11             # The process.execArgv property returns the set of Node.js-specific command-line options passed when the Node.js process was launched.
|   |   β”œβ”€β”€ example12             # The process.exit() method instructs Node.js to terminate the process synchronously with an exit status of code.
|   |   β”œβ”€β”€ example13             # Use getegid, geteuid, getgid, getgroups and getuid functions for show info process identity.
|   |   β”œβ”€β”€ example14             # The bigint version of the process.hrtime() method returning the current high-resolution real time in nanoseconds.
|   |   β”œβ”€β”€ example15             # The process.memoryUsage() method returns an object describing the memory usage of the Node.js process measured in bytes.
|   |   β”œβ”€β”€ example16             # process.nextTick() adds callback to the "next tick queue".
|   |   β”œβ”€β”€ example17             # pid, platform, ppid, release props for get additional data of process and NodeJS release.
|   |   β”œβ”€β”€ example18             # Returns object the resource usage for the current process.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ querystring               # Query String.
|   |   β”œβ”€β”€ example01             # Use querystring.encode for encode json object to url params.
|   |   β”œβ”€β”€ example02             # Use querystring.decode for decode url with several params to json object.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ readline                  # Readline.
|   |   β”œβ”€β”€ example01             # Use createInterface and create question and show user answer.
|   |   β”œβ”€β”€ example02             # To exit this process you just have to press <ctrl> + C.
|   |   β”œβ”€β”€ example03             # Get content for show from txt file for create interface.
|   |   β”œβ”€β”€ example04             # Use "process.stdin" events to get more interactions.
|   |   β”œβ”€β”€ example05             # Use line, close, pause and resume of readline for get events.
|   |   β”œβ”€β”€ example06             # Use keypress, keyup and keydown for get "process.stdin" events.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ repl                      # REPL.
|   |   β”œβ”€β”€ example01             # Create REPL and press .help for show all help commands.
|   |   β”œβ”€β”€ example02             # Create and press 2 times ^C again or ^D or type .exit.
|   |   β”œβ”€β”€ example03             # Run REPL, create a function and execute it..
|   |   β”œβ”€β”€ example04             # Create "replServer" and use defineCommand for include Specific Commands.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ report                    # Diagnostic Report.
|   |   β”œβ”€β”€ example01             # Write error and report to generic json file with an example.
|   |   β”œβ”€β”€ example02             # Write error and report to concrete file with an example.
|   |   β”œβ”€β”€ example03             # Launch an error and getReport to show javascriptStack object..
|   |   β”œβ”€β”€ example04             # Show errors and reports via EventEmitter.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ stream                    # Stream.
|   |   β”œβ”€β”€ example01             # Write severals string into file.txt with .write function.
|   |   β”œβ”€β”€ example02             # Include callbacks for open, ready, finish, open and error events.
|   |   β”œβ”€β”€ example03             # Write big file with .write method with this result: 1,1G stream-big-example03.txt.
|   |   β”œβ”€β”€ example04             # Show how many seconds the function fs.writeFile and fs.createWriteStream needs to perform the same task.
|   |   β”œβ”€β”€ example05             # Create origin and destination Stream and use gzip for compress file destination.
|   |   β”œβ”€β”€ example06             # Create origin Stream, Custom transform Stream and destination Stream for replace text from origin to destination file.
|   |   β”œβ”€β”€ example07             # Http server and Read Stream for create gz file from txt file and download with browser.
|   |   β”œβ”€β”€ example08             # Http server and Read Stream for return html file with gzip encoding.
|   |   β”œβ”€β”€ example09             # Readable with iterate function with yield.
|   |   β”œβ”€β”€ example10             # Readable with iterate array.
|   |   β”œβ”€β”€ example11             # Readable Stream with iterate map with severals objects items.
|   |   β”œβ”€β”€ example12             # Readable Object with iterate map and two pipes for work with severals Streams Writables.
|   |   β”œβ”€β”€ example13             # Parallel Pipes with Readable from array with iterate map, transform and Write with two Stream file.
|   |   β”œβ”€β”€ example14             # Sequentials Pipes with end option to false and Readable and Duplex with write functions more info with timeouts.
|   |   β”œβ”€β”€ example15             # Sequentials Pipes and Readable with autoClose option to false and Duplex with end option to false and set severals writes functions.
|   |   β”œβ”€β”€ example16             # Work with Readline and Write Stream to save line by line.
|   |   β”œβ”€β”€ example17             # Create Stream from origin file, replace all emails to * characters and save into new Stream file.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ timers                    # Timers.
|   |   β”œβ”€β”€ example01             # timeout vs immediate.
|   |   β”œβ”€β”€ example02             # timeout vs immediate with inside timers.
|   |   β”œβ”€β”€ example03             # timeout vs severals immediate.
|   |   β”œβ”€β”€ example04             # timeout vs immediate vs nextTick.
|   |   β”œβ”€β”€ example05             # nextTick with try/catch and not block timeout and immediate.
|   |   β”œβ”€β”€ example06             # timeout, immediate, nextTick and promises inside this with try/catch/finally.
|   |   β”œβ”€β”€ example07             # timeout, immediate, nextTick and promises inside this with then/catch/finally.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ util                      # Util.
|   |   β”œβ”€β”€ example01             # Use .callbackify method with async function.
|   |   β”œβ”€β”€ example02             # Use .callbackify method with Promise.
|   |   β”œβ”€β”€ example03             # Return with .debuglog method param.
|   |   β”œβ”€β”€ example04             # Return with .debuglog method severals params.
|   |   β”œβ”€β”€ example05             # Return console with color in terminal and params.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ worker-threads            # Worker Threads.
|   |   β”œβ”€β”€ example01             # Create Worker with the same file..
|   |   β”œβ”€β”€ example02             # Create Worker with differents files for create two parallels tasks.
|   |   β”œβ”€β”€ example03             # Create two Worker and send messages with parent.
|   |   β”œβ”€β”€ example04             # Create ten Worker and send messages to parent with finish setTimeout with random time.
|   |   β”œβ”€β”€ example05             # Create Worker when update the content of local json file for change it and save into other file.
|   |   └── ...                   # ...
|   |
|   β”œβ”€β”€ zlib                      # Zlib.
|   |   β”œβ”€β”€ example01             # Compress to zip destination file from txt file how source.
|   |   β”œβ”€β”€ example02             # Compress jpg file to zip file and decompress zip for get jpg origin file.
|   |   β”œβ”€β”€ example03             # Create .gz file from jpg file and uncompress with createGunzip method.
|   |   β”œβ”€β”€ example04             # Create severals .gz file with gzip, deflate and brotli methods. You can see which one is more efficient.
|   |   β”œβ”€β”€ example05             # Create http server and return html file with Brotli Compress via response Stream.
|   |   β”œβ”€β”€ example06             # Create http server and Static files into a public folder.
|   |   └── ...                   # ...
|   |
|   └── ...
└── ...

⛽️ Review and Update Dependences

For review and update all npm dependences of this project you need install in global npm package "npm-check-updates" npm module.

# Install and Run
$npm i -g npm-check-updates
$ncu

Happy Code

Created with JavaScript, lot of ❀️ and a few β˜•οΈ

This README.md file has been written keeping in mind

About

πŸŽ“ This repository contains examples that I have done for my own preparation for the Nodej.js certification exam - Application Developer (JSNAD).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Other 0.5%