Socket
Book a DemoInstallSign in
Socket

@dabble/rest-client

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dabble/rest-client

An easier-to-use API for using REST APIs via fetch

1.0.2
latest
npmnpm
Version published
Weekly downloads
13
-79.69%
Maintainers
3
Weekly downloads
 
Created
Source

A library for working with JSON REST APIs. This function creates a REST API client that can be used to make requests to the specified URL. It returns an object with methods for making GET, POST, PUT, PATCH, and DELETE requests.

Examples:

const api = createRestAPI('https://api.example.com');
const data = await api.get('/users').send();
const user = await api.post('/users').body({ name: 'Alice' }).send();
const user = await api.post('/users').send({ name: 'Alice' });
await api.delete('/users').query({ id: 123 }).send();

FAQs

Package last updated on 10 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.