- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Mayank Agarwal has Published 410 Articles
Mayank Agarwal
1K+ Views
Introduction to Sync copyThis method copies files or directories from one location to another location in a sync process. The directory can have sub-directories and files.SyntaxcopySync(src, dest[, options])Parameterssrc – This is a string paramter which will hold the source location of the file or directory that needs to be copies. ... Read More
Mayank Agarwal
431 Views
readJson() method reads a JSON object and then parses it into an object.SyntaxreadJson(file [, options] [, callback])Parametersfile – String parameter which will contain name and location of the file holding the JSON.options – The 'outputFile' function supports the following options −encoding – Default 'null'.flag – Default 'r'. The flag 'r' opens a file for ... Read More
Mayank Agarwal
137 Views
In this article, we will see how to select or query the data from a database based on different table fields and columns.Before proceeding, please check the following steps are already executed −mkdir mysql-testcd mysql-testnpm init -ynpm install mysqlThe above steps are for installing the Node - mysql dependecy in ... Read More
Mayank Agarwal
250 Views
Introduction to Async pathExists()This method will test whether the given path exists or not by checking with the file system. It will throw error in callback if the path does not exist.SyntaxpathExists(file[, callback])Parametersfile – This is the path of the file that needs to be checked in all the file ... Read More
Mayank Agarwal
268 Views
Introduction to Async outputFile()This method is similar to write file of 'fs'. The only difference is it will create the parent directories, if not present. The argument passed should always be a file path, not a buffer or a file descriptor.SyntaxoutputFile(file, data[, options] [, callback])Parametersfile – String parameter which will ... Read More
Mayank Agarwal
123 Views
An exception is a type of an event that occurs while executing or running a program that stops the normal flow of the program and returns to the system. When an exception occurs the method creates an object and gives it to the runtime system. This creating an exception and ... Read More
Mayank Agarwal
255 Views
An exception is a type of an event, that occurs while executing or running a program that stops the normal flow of the program and returns to the system. When an exception occurs the method creates an object and gives it to the runtime system. This creating an exception and ... Read More
Mayank Agarwal
167 Views
An exception is a type of an event that occurs while executing or running a program that stops the normal flow of the program and returns to the system. When an exception occurs the method creates an object and gives it to the runtime system. This creating an exception and ... Read More
Mayank Agarwal
4K+ Views
Like Image, we can also overlay text on an image using JIMP. This can be used to display brands or copyright information on images. The print() method is used to write text on images. Though Jimp can only support the Bitmap font format (.fnt), but other fonts can be converted ... Read More
Mayank Agarwal
140 Views
NodeJS – Sepia() is an inbuilt function that is used to apply a sepia or wash tone to the image.Syntaxsepia(cb)sepia() paramterscb – This is an optional parameter that can be invoked after the compilation is complete.Input ImageUsing Node JIMP – SEPIA()Before proceeding to use sepia() functions, please check that the following ... Read More
To Continue Learning Please Login
Login with Google