Main Socket features:
- csv/dump — dump data from given class in CSV format
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'