@syncport/sdk
v0.1.1
Published
High-level Syncport client for data export and adapter registration
Downloads
266
Maintainers
Readme
@syncport/sdk
High-level Syncport client for registering adapters and exporting data with a simple API.
Install
npm install @syncport/sdk @syncport/core @syncport/hubspotAdd optional adapters as needed (@syncport/csv, @syncport/airtable, etc.).
Quick start
import { createClient } from "@syncport/sdk";
import { HubspotAdapter } from "@syncport/hubspot";
import { CsvAdapter } from "@syncport/csv";
const client = createClient({ defaultAdapter: "hubspot" });
client.register(new HubspotAdapter());
client.register(new CsvAdapter());
const hubspot = client.exportData({ name: "Ali", email: "[email protected]" });
const csv = client.exportData([{ name: "Ali", email: "[email protected]" }], {
adapter: "csv",
});Links
- Playground — try all adapters in the browser
- GitHub
- @syncport/core
License
MIT
