Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

safe-json-to-csv

npm8632017464MIT1.0.7

Convert JSON to CSV or Excel securely with nested flattening and formula injection protection.

json, csv, excel, json to csv, json to excel, safe csv, sanitize csv, secure csv, formula injection protection, prevent excel injection, csv export, flatten json, data export

readme

safe-json-to-csv

npm version downloads license

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