safe-json-to-csv
v1.0.7
Published
Convert JSON to CSV or Excel securely with nested flattening and formula injection protection.
Maintainers
Readme
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
.xlsxfile 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
npm install safe-json-to-csv