Skip to content

WebNinjaDeveloper.com

Programming Tutorials




Menu
  • Home
  • Youtube Channel
  • Official Blog
  • Nearby Places Finder
  • Direction Route Finder
  • Distance & Time Calculator
Menu

Category: Nodejs

Node.js Tutorial to Parse & Extract Text & Tables From PDF Document Using pdfreader Library in Javascript

Posted on March 20, 2023

    Welcome folks today in this blog post we will be extracting and parse text and tables from pdf document using pdfreader library in javascript. All the full source code of…

Node.js Express Project to Stream Local MP4 Video in Webpage Using Fetch API in Javascript

Posted on March 20, 2023

    Welcome folks today in this blog post we will be implemting video streaming in webpage using fetch api in javascript using node.js and express. All the full source code of…

Node.js Express Tutorial to Read & Write Stream of Data From Buffer to Server Using Pipes in Browser

Posted on March 20, 2023

    Welcome folks today in this blog post we will be looking at how to read and write stream of data from buffer to server using pipes in browser in node.js…

Node.js PDFKit Example to Export Excel File to PDF Document Using ExcelJS Library

Posted on March 20, 2023

    Welcome folks today in this blog post we will be using the pdfkit library to export the excel file to pdf document using the exceljs library in node.js. All the…

Node.js XPDF Tutorial to Export PDF File to Text and Save it as Audio File Using Say.js Module

Posted on March 19, 2023

    Welcome folks today in this blog post we will be using the xpdf library to extract the text from the pdf file and save it as audio file using the…

Node.js Tutorial to Rename All Files in Directory With Custom Pattern Using fs Module

Posted on March 17, 2023

    Sure, here’s a Node.js script that uses the fs module to rename all the files in a directory to img%d pattern:    

JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const fs = require('fs');
const path = require('path');
 
const directoryPath = './my-directory'; // change this to the path of your directory
const prefix = 'img'; // change this to the prefix you want to use
const extension = '.jpg'; // change this to the file extension you want to use
let counter = 1;
 
fs.readdir(directoryPath, (err, files) => {
  if (err) throw err;
  files.forEach((file) => {
    const oldPath = path.join(directoryPath, file);
    const newPath = path.join(directoryPath, prefix + counter + extension);
    fs.rename(oldPath, newPath, (err) => {
      if (err) throw err;
      console.log(`${oldPath} renamed to ${newPath}`);
    });
    counter++;
  });
});

    In this code, the…

Node.js Fluent-FFMPEG Audio Pitch & Speed Changer With Live Preview in Browser Using Express

Posted on March 16, 2023

    Welcome folks today in this blog post we will be using the fluent-ffmpeg library to change the pitch and speed of mp3 audio file in browser using node.js and express…

Node.js Express Server Side Form Validation With Custom Error Messages Using express-validator Library in Javascript

Posted on March 15, 2023

  Welcome folks today in this blog post we will be implementing server side form validation with custom error messages using express-validator library in javascript. All the full source code of the…

Node.js Express Project to Validate User Form Data Using joi Schema Validation Library Full Example

Posted on March 14, 2023

    Welcome folks today in this blog post we will be implementing form validation using joi schema validation library in node.js and express in javascript. All the full source code of…

Node.js Puppeteer Project to Export Handlebars Resume Template to PDF Document in Express Using Javascript

Posted on March 13, 2023

    Welcome folks today in this blog post we will be exporting handlebars resume template to pdf document in express using node.js and puppeteer library. All the full source code of…

Posts navigation

1 2 … 11 Next

Recent Posts

  • Node.js Tutorial to Parse & Extract Text & Tables From PDF Document Using pdfreader Library in Javascript
  • Node.js Express Project to Stream Local MP4 Video in Webpage Using Fetch API in Javascript
  • Node.js Express Tutorial to Read & Write Stream of Data From Buffer to Server Using Pipes in Browser
  • Node.js PDFKit Example to Export Excel File to PDF Document Using ExcelJS Library
  • Python 3 Openpyxl Script to Export Excel (.XLSX) File to PDF Document Using ReportLab Library
  • Angular
  • Bunjs
  • C#
  • Deno
  • django
  • Electronjs
  • java
  • javascript
  • Koajs
  • kotlin
  • Laravel
  • meteorjs
  • Nestjs
  • Nextjs
  • Nodejs
  • PHP
  • Python
  • React
  • ReactNative
  • Svelte
  • Tutorials
  • Vuejs




©2023 WebNinjaDeveloper.com | Design: Newspaperly WordPress Theme