gbv / cocoda-sdk

SDK for Cocoda and coli-conc services
https://gbv.github.io/cocoda-sdk/
MIT License
5 stars 1 forks source link

Offer easier way to add all providers #37

Closed stefandesu closed 2 years ago

stefandesu commented 2 years ago

Currently, all providers are exported together with the other stuff, so if you need all providers, there's currently no easy way to do this. Ideally, you could do something like this:

import { cdk } from "cocoda-sdk"
import * as providers from "cocoda-sdk/providers"
Object.values(providers).forEach(provider => cdk.addProvider(provider))
stefandesu commented 2 years ago

Made it even easier:

import { cdk, addAllProviders } from "cocoda-sdk"
addAllProviders()

👍