git clone [email protected]:tharlestsa/sld2mapfile.git && cd sld2mapfile && npm install && npm run deploy
You need to navigate to the folder where the .sld is and run this command.
# sld2map --table <tablename> --sld <sld_path> > <mapfile_name>.map
# find ./ -type f -name "*.sld" -exec sld2map --table <tablename> --sld "{}" \; > <mapfile_name>.map