2 ms·
We try to keep it to a minimum, especially in JS (though we have some nice improvements coming soon when we deprecate node-fetch in favor of built-in fetch). Th
by rattray 2y ago
We try to keep it to a minimum, especially in JS (though we have some nice improvements coming soon when we deprecate node-fetch in favor of built-in fetch). The package sizes aren't tiny because we include thorough types and sourcemaps, but the bundle sizes are fairly tidy.
Here's an example of a typical RESTful endpoint (Lithic's `client.cards.create()`:
https://github.com/lithic-com/lithic-node/blob/36d4a6a70597e9d15153510b97488875c51e034f/src/resources/cards/cards.ts#L26-L28 https://github.com/lithic-com/lithic-node/blob/36d4a6a70597e...
Here are some example repos produced by Stainless:
1. https://github.com/openai/openai-node https://github.com/openai/openai-node
2. https://github.com/openai/openai-python https://github.com/openai/openai-python
3. https://github.com/cloudflare/cloudflare-go https://github.com/cloudflare/cloudflare-go
4. https://github.com/Modern-Treasury/modern-treasury-java https://github.com/Modern-Treasury/modern-treasury-java