json2csv
json2csv Fast and highly configurable JSON to CSV converter.
- 🚀 Efficient and lightweight processing.
- 📋 Compatible with both standard JSON and NDJSON.
- 📈 Scales seamlessly with stream processing for large datasets.
- 🎛️ Allows automatic field discovery, underscore-like selectors, custom data getters, and default values for missing fields.
- 🔄 Provides flexibility for custom data transformations.
- 📊 Customizable formatting options for CSV cells.
- 🛠️ Highly customizable with support for custom quotation marks, delimiters, end-of-line values, etc.
- 🧊 Automatically escapes special characters like new lines and quotes.
- 🗂️ Ability to handle data with or without headers.
- 🔤 Supports encoding and decoding of Unicode characters.
- 🖨️ Presents data in a visually pleasing table format when printed to the standard output.
Installation
Step 1: Install
Install pergel nuxt module. here
Step 2: Configuration
ts
// https://nuxt.com/docs/api/configuration-nuxt-config#projects
export default defineNuxtConfig({
modules: [
'pergel/nuxt',
],
pergel: {
projects: {
changeName: {
json2csv: true,
// ... other modules
}
},
},
})changeName
changeName is the name of your project. Please change it to your project name.
Step 3: Generate Type and Pergel folders/files
sh
$ pnpm nuxt preparesh
$ npm nuxt preparesh
$ yarn nuxt preparesh
$ bun nuxt prepareStep 4: Install Dependencies/DevDependencies
Auto install dependencies and devDependencies for the project.
sh
$ pnpm pergel installsh
$ npm pergel installsh
$ yarn pergel installsh
$ bun pergel install