Socket
Book a DemoInstallSign in
Socket

@tomphttp/bare-client

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tomphttp/bare-client

This package implements the [TompHTTP Bare Server](https://github.com/tomphttp/specifications/blob/master/BareServer.md) as a client.

Source
npmnpm
Version
1.0.2-beta-readme3
Version published
Maintainers
1
Created
Source

Bare Client

This package implements the TompHTTP Bare Server as a client.

Quickstart

Script tag:

<script src="https://unpkg.com/@tomphttp/bare-client@1.0.2-beta-readme3/dist/BareClient.umd.min.cjs"></script>
  • Install
npm install @tomphttp/bare-client
  • Include in your code
import BareClient from '@tomphttp/bare-client';

const client = new BareClient('https://uv.holyubofficial.net/');

// ...

const response = await client.fetch('https://www.google.com/');

console.log(response.status, await response.text())

FAQs

Package last updated on 21 Jun 2022

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