# getweb

> A lightweight, fast and not async request module.

Latest version **0.0.2** (published 2022-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install getweb
pnpm add getweb
yarn add getweb
bun add getweb
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-02-06 |
| First published | 2020-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ceyrex20 |
| Maintainers | xchairs, roxza |
| Keywords | getweb, request, webget, get, web, get-web, web-get |

## Links

- npm: https://www.npmjs.com/package/getweb
- Homepage: https://github.com/RRoxza/getweb#readme
- Issues: https://github.com/RRoxza/getweb/issues
- npm.io page: https://npm.io/package/getweb

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2022-02-06
- 0.0.1 — 2020-08-07

## README

[![DeepScan grade](https://deepscan.io/api/teams/9479/projects/12083/branches/182378/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=9479&pid=12083&bid=182378)
[![NPM info](https://img.shields.io/npm/dt/getweb?color=39F4B6)](https://www.npmjs.com/package/getweb)
[![GitHub stars](https://img.shields.io/github/stars/ceyrex20/getweb?color=888BFF)](https://github.com/ceyrex20/getweb/stargazers)
[![GitHub issues](https://img.shields.io/github/issues-raw/ceyrex20/getweb)](https://github.com/ceyrex20/getweb/issues)

[![NPM Info](https://nodei.co/npm/getweb.png?downloads=true&stars=true)](https://www.npmjs.com/package/getweb)

# getweb

A lightweight, fast and not async request module.

You can go to the documentation by [clicking here](https://getweb.glitch.me).

## Basic Example

```js
const gw = require("getweb");

/* == GET == */
let request1 = gw.get("https://example.com");
console.log(request1.body);

//To get the object format;
let request2 = gw.get("https://example.com", {
  json: true,
});
console.log(request2.body);

/* == POST == */
let request3 = gw.post("https://example.com", {
  data: {
    message: "hello world",
  },
});
console.log(request3.body);

//In a different way;
let request4 = gw.post("https://example.com", {
  body: {
    message: "hello world",
  },
});
console.log(request4.body);
```

## Other Examples

```js
//HTML to JSON;
let request5 = gw.get("https://example.com", {
  html: true,
  json: true,
});
console.log(request5.body);

//XML to JSON;
let request6 = gw.get("https://example.com", {
  xml: true,
  json: true,
});
console.log(request6.body);

//JQuery mode;
let $ = gw.get("https://example.com", {
  jquery: true,
});
console.log($);
console.log($("div#id"));
```

---
_Source: https://npm.io/package/getweb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
