Ryan526 / GLN_Parse

GLN Extractor: A simple, user-friendly Node.js tool for extracting Global Location Numbers from various file formats including .docx, .txt, and .xlsx, with options for outputting results as an SQL script or a list.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLN Extractor

GLN Extractor is a simple tool built with Node.js and Express, using mammoth.js, multer, textract, and xlsx to extract Global Location Numbers (GLNs) from .docx, .txt, and .xlsx files.

The tool provides a user-friendly interface for uploading files and choosing output options, allowing users to extract GLNs and output them either as an SQL script or a plain list.

Table of Contents

Installation

You'll need to have Node.js installed on your machine to run this application.

To install the application, first clone this repository:

git clone https://github.com/Ryan526/GLN_Parse.git

Next, navigate to the project's root directory and install the necessary dependencies:

cd GLN_Parse npm install

Usage

To start the server, run the following command: npm start

Then, open your web browser and navigate to http://localhost:80 to start using the GLN Extractor.

Dependencies

This project depends on the following npm packages:

  • express for creating the server and routing
  • multer for handling file uploads
  • mammoth for extracting text from .docx files
  • textract for extracting text from .txt files
  • xlsx for reading .xlsx files
  • fs (built into Node.js) for file system operations

File Overview

  • Extractor.js: This is the main server file. It sets up the server, handles routing and file uploads, extracts GLNs from the uploaded files, and sends the extracted GLNs back to the client.

  • Index.html: This is the client-side HTML file. It includes a form for file upload and output option selection, a div for displaying the results, and scripts for handling form submissions and displaying the results.

Contributors

Made with contrib.rocks.

About

GLN Extractor: A simple, user-friendly Node.js tool for extracting Global Location Numbers from various file formats including .docx, .txt, and .xlsx, with options for outputting results as an SQL script or a list.


Languages

Language:JavaScript 53.6%Language:HTML 46.4%