Code Monkey home page Code Monkey logo

pdfsearcher's Introduction

pdfSearcher

This Node.js application allows you to search for a specific keyword within PDF files in a given directory.

Prerequisites

Node.js installed on your system

Program Overview

  • The program utilizes the pdf-parse library to extract text from PDF files.
  • It prompts the user for a keyword and the path to the directory containing PDF files.
  • The application then searches for the specified keyword within the text of all PDF files in the given directory.
  • If the keyword is found in a PDF file, the filename is added to the list of matching files.
  • Finally, the program displays the list of PDF files that contain the specified keyword.

Note: PDF files in the specified directory must have the ".pdf" extension to be considered.

How to Use

  1. Clone this repository to your local machine.
  2. Open a terminal window and navigate to the project directory.
  3. Run npm install to install the required dependencies.
  4. Run the program using the following command: node pdf-search.js
  5. Enter the keyword you want to search for when prompted.
  6. Enter the path to the directory containing the PDF files when prompted.

Dependencies

Example Usage

Enter the keyword to search for: Software

Enter the path to the pdf folder: /path/to/pdf/files

pdfsearcher's People

Contributors

markxtenda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.