Gathering detailed insights and metrics for typed-rest-client
Gathering detailed insights and metrics for typed-rest-client
Gathering detailed insights and metrics for typed-rest-client
Gathering detailed insights and metrics for typed-rest-client
@sebspark/openapi-client
A typed REST client for the definitions from openapi-typegen
octokit
The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno
@ts-rest/core
RPC-like experience over a regular REST API, with type safe server implementations 🪄
@azure/core-http-compat
Core HTTP Compatibility Library to bridge the gap between Core V1 & V2 packages.
Node Rest and Http Clients with typings for use with TypeScript
npm install typed-rest-client
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
674 Stars
237 Commits
118 Forks
39 Watching
40 Branches
10,000 Contributors
Updated on 23 Nov 2024
TypeScript (85.42%)
JavaScript (14.58%)
Cumulative downloads
Total Downloads
Last day
4.8%
136,717
Compared to previous day
Last week
0.2%
730,861
Compared to previous week
Last month
13.7%
3,077,984
Compared to previous month
Last year
29.3%
29,764,002
Compared to previous year
5
A lightweight REST and HTTP client optimized for use with TypeScript with generics and async await.
Intellisense and compile support:
npm install typed-rest-client --save
Or to install the latest preview:
npm install typed-rest-client@preview --save
See the samples for complete coding examples. Also see the REST and HTTP tests for detailed examples.
The HTTP client does not throw unless truly exceptional.
See HTTP tests for detailed examples.
The REST client is a high-level client which uses the HTTP client. Its responsibility is to turn a body into a typed resource object.
{ message: xxx}
), then the error message will be that. Otherwise, it will be a generic, Failed Request: (xxx)
.See REST tests for detailed examples.
To enable detailed console logging of all HTTP requests and responses, set the NODE_DEBUG environment varible:
export NODE_DEBUG=http
or
set NODE_DEBUG=http
v2 - [current, maintained] - Supports node 16 and above v1 - End Of Life, for Node < 16, contains security vulnerabilities, use at your own risk
To contribute to this repository, see the contribution guide
To build:
1$ npm run build
To run all tests:
1$ npm test
To just run unit tests:
1$ npm run units
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Do you think there might be a security issue? Have you been phished or identified a security vulnerability? Please don't report it here - let us know by sending an email to secure@microsoft.com.
The latest stable version of the package.
Stable Version
1
9.1/10
Summary
Potential leak of authentication data to 3rd parties
Affected Versions
< 1.8.0
Patched Versions
1.8.0
Reason
all changesets reviewed
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
license file detected
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More