safe-json-to-csv
Secure JSON to CSV/Excel Converter for Node.js
This package converts JSON to CSV and Excel (.xlsx) formats with built-in formula injection protection.
It helps prevent dangerous Excel formulas like =HYPERLINK()
, +123456
, -123
, or @attack()
from being executed.
🚀 Features
- ✅ Convert JSON to CSV easily.
- ✅ Supports Excel
.xlsx
file export. - ✅ Nested object flattening (
info.city → info.city
). - ✅ Formula injection protection (adds
'
to dangerous values). - ✅ Lightweight, fast, and easy to use.
🐛 Report Issues
If you find a bug, have a question, or want to request a feature,
please open an issue here:
👉 GitLab Issues Page
📦 Installation
`
bash
npm install safe-json-to-csv