Skip to content

eyedea-io/syncano-socket-csv

Repository files navigation

Syncano Socket for CSV generation

Syncano Socket CircleCI branch Codecov branch npm license

Main Socket features:

  • csv/dump — dump data from given class in CSV format

Getting Started

Install package in your project:

cd my_project
npm install @syncano/cli --save-dev
npm install @eyedea-sockets/csv --save
npx s deploy

Use it:

import Syncano from '@syncano/client'

const s = new Syncano(<instaneName>)

// Search for a user
const params = {
  className: 'books'
}
const csvBooks = await s.get('csv/dump', params)

// '"name","age"\n"mcj",18\n"nik",22'