{"repo":"cloudflare/cloudflare-typescript","free":true,"listed":false,"github":"https://github.com/cloudflare/cloudflare-typescript","clone":"git clone https://github.com/cloudflare/cloudflare-typescript.git","description":"The official TypeScript library for the Cloudflare API","language":"TypeScript","stars":797,"topics":["api","cloudflare","sdk","sdk-typescript"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Cloudflare TypeScript API Library This library provides convenient access to the Cloudflare REST API from server-side TypeScript or JavaScript. The REST API documentation can be found on developers.cloudflare.com. The full API of this library can be found in api.md. It is generated with Stainless. Installation [!NOTE] Once this package is published to npm, this will become: npm install cloudflare Usage The full API of this library can be found in api.md. Request & Response types This library includes TypeScript definitions for all request params and response fields. You may import and use them like so: Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors. File uploads Request parameters that correspond to file uploads can be passed in many different forms: - File (or an object with the same structure) - a fetch Response (or an object with the same structure) - an fs.ReadStream - the return value of our toFile helper Handling errors When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of APIError will be thrown: Error codes are as follows: Status Code Error Type ----------- -------------------------- 400 BadRequestError 401 AuthenticationError 403 PermissionDeniedError 404 NotFoundError 422 UnprocessableEntityError 429 RateLimitError =500 InternalServerError N/A APIConnectionError Retries Certain errors wil","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudflare","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudflare/cloudflare-typescript/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}