CSV

Nuxt Content can query CSV formatted content.

The body of the output is an array containing every row as objects.

Example

content/hello.csv
title,description,category
Hello Content v2!,The writing experience for Nuxt 3,announcement
Output
{
  _path: '/hello',
  _draft: false,
  _partial: false,
  _id: 'content:hello.csv',
  _type: 'csv',
  body: [
    {
      title: 'Hello Content v2!',
      description: 'The writing experience for Nuxt 3',
      category: 'announcement'
    }
  ],
  title: 'Hello',
  _source: 'content',
  _file: 'hello.csv',
  _extension: 'csv'
}