Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.13 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.13 KB

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'