JavaScript and Node.js

Node.js is a low-level, highly scalable asynchronous processing platform. Node.js allows you to make apps which can access networks, Internet and operating system (os) file system. The JavaScript v8 runtime used in the Node.js platform which is also used in Google Chrome.

How to make desktop applications using HTML, CSS, and JavaScript

Learn how to make desktop applications out of the very same technologies used in web development.

Creating a basic "Hello World" app in Electron.js

Before creating the main.js and index.html files, we need to discuss the two process types available in Electron. They are fundamentally different and important to understand. Each of these two processes has a specific responsibility within the application.

Creating index.html in Electron.js

We already learned that the renderer processes would display the UI of your application. It will load content and execute it within its own thread. Now we'll create our renderer index.html file inside the same directory where the package.json resides.

Creating GUI for your desktop applications using HTML, CSS, and JavaScript

We’ll create user interface (UI) for our &qout;Duplicate File Finder" desktop app with HTML and style it witch css. It is a very simple interface, just a logo on top with Application name, version number and two button  Add folder and Start search for controlling the app behavior.

Creating GUI for Duplicate File Finder app

In this tutorial we'll make the GUI for Duplicate File Finder and Remover application using JavaScript, HTML, CSS and Electron.js.

How to create hash from string or file using crypto module in Node.js

Hash is a way to encrypt data into a fixed-length digest. This digest serves as a signature representing the original data that hashed. The various types of hashing algorithms are available in Node.js through the crypto module.

Synchronously read, write, append files and read a dir recursively

In this tutorial, we’ll learn how to read, write, and append to files in a asynchronous and synchronous manner. We’re going to write a simple program that grab text from a file, and saves it in a new file. We’ll also learn how to read a dir in a synchronous manner recursively.

Asynchronously read, write, append files and read a dir recursively

In this tutorial, we’ll learn how to read, write, and append to files in an asynchronous manner. We’re going to write a simple program that grab text from a file, and saves it in a new file. We’ll also learn how to read a dir in an asynchronous manner recursively.

Read and write files bytes by bytes

Another way to access a file is fs.open() function. Once a file is accessed, you can read data from it using fs.read() function or write data to it using fs.write() function.

fs.Stats – get file information

Lean how to query the status of files using Node.js, returning information such as the file type, file owner, access permission file size, number of links, inode number and file birth, access, change and modify times.

Synchronous vs. Asynchronous and Callbacks

A synchronous function blocks until it completes its operations. An asynchronous function returns immediately and the result is passed to a callback function.

The event loop (queue)

So, if you have functionality that needs to wait on something, such as opening a file, retrieving data from the database, a web response, or other activity of this nature, then blocking the application until the operation is finished would be a major point of failure in a server-based application. The solution to prevent blocking is the event loop.

Async file or dir walker class by extending EventEmitter

In this tutorial, we'll make an event driven file walker which will scan a directory tree asynchronously.

Creating and Publishing Node.js Modules

You can split off reusable JavaScript into its own libraries called modules. A Node module is simply a JavaScript file. The export or module.exports statement is used when creating a Node module. You can convert functions, objects, or primitive values into module.

Adding pause, resume and filter feature to File Walker

Now its time to extend our FileWalker module by adding the pause and resume functionality to make our Duplicate File Finder pausable and resumable. We’ll also add two methods filterDir and filterFile to filter out directories and files for inclusion or exclusion.

Child Process in Node.Js

A child process is a process created by a parent process. Node allows us to run a system command within a child process and listen in on its input/output. This includes being able to pass arguments to the command, and even pipe the results of one command to another.

Create app options module with JavaScript Object.freeze() method

JavaScript doesn't support ENUM data type. We can use the freeze() method to create ENUM like object. In this tutorial we’ll make a module to define some app settings for our Duplicate File Finder app to help child and parent processes when they communicate with each other.

Insert rows and cells to a table using JavaScript

Tables are one of the most useful and complex structures in HTML. In this tutorial you’ll learn how to insert rows to a table or delete a row from a table using JavaScript.

Resizable table using pure JavaScript

In this tutorial we’ll learn how to make html table columns resizable using pure JavaScript.

Advertisement:
Advertisement: