This is a simple test project that allows you to read and display a .DBF file in the browser using Node.js β no PHP or external web server required.
The folder includes:
node.exe β a portable version of Node.js (no installation needed)
server.js β serves the HTML and handles API requests
readdbf.js β a minimal DBF reader written in pure JavaScript (converted from php4dbf)
read_dbf.html β browser interface to view records
STAFF.DBF β sample database file
start-server.bat β double-click to launch (http://localhost/)
The file readdbf.js is a direct translation of classic PHP logic from php4dbf, rewritten in pure JavaScript for Node.js.
This project demonstrates:
how easily structured DBF access can be achieved without PHP
how xBase-style data can be integrated into modern web environments
that it's possible to view DBF data in the browser without any database server
This is an experimental demo only β not production-grade code.
node.exe is the unaltered portable version of Node.js from https://nodejs.org, included for convenience (offline/local testing).
Use at your own discretion.
https://clipper2web.com/downloads/nodetests.zip
