This package allows you to easily convert a shapefile to geojson.
npm install shapefile-to-geojsonThis is a simple package to convert shapefiles to GeoJSON.
``bash`
npm install shapefile-to-geojson
`js
const shapefileToGeojson = require("shapefile-to-geojson");
const geoJSON = await shapefileToGeojson.parseFiles("./path/to/shapefile.shp", "./path/to/dbf.dbf");
const geoJSON = await shapefileToGeojson.parseFolder("./path/to/files"); // This directory should include 1 shp & 1 dbf file``