cloudly-rest is a generic REST client library designed for specialization in TypeScript projects. Version 0.1.6 provides a foundational set of utilities for making HTTP requests with typed responses and error handling. It is part of the Utily ecosystem and ships with TypeScript types. The library focuses on being lightweight and extensible, allowing developers to build specialized client wrappers around a generic core. Release cadence is not well-established; this is an early-stage package.
npm install cloudly-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a REST client instance and make a GET request with authentication.
Use base without trailing slash, e.g., 'https://api.example.com'.
Pin exact version and expect breaking changes.
Use 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' instead.
Ensure 'cloudly-rest' is installed and in tsconfig 'node_modules' resolution. If using pnpm, add to 'dependencies'.
Use 'new RestClient(...)' (constructor) not 'RestClient(...)' (without new).
Remove trailing slash from base URL.