# urllib-sync

> sync http request

Latest version **1.1.4** (published 2017-05-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install urllib-sync
pnpm add urllib-sync
yarn add urllib-sync
bun add urllib-sync
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2017-05-19 |
| First published | 2014-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 44 |
| Author | dead-horse |
| Maintainers | dead_horse |
| Keywords | http, sync, request |

## Links

- npm: https://www.npmjs.com/package/urllib-sync
- Repository: https://github.com/node-modules/urllib-sync
- Homepage: https://github.com/node-modules/urllib-sync#readme
- Issues: https://github.com/node-modules/urllib-sync/issues
- npm.io page: https://npm.io/package/urllib-sync

## Dependencies (2)

- [urllib](https://npm.io/package/urllib.md) ~2.11.0
- [utility](https://npm.io/package/utility.md) ~1.7.1

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2017-05-19
- 1.1.3 — 2016-05-24
- 1.1.2 — 2015-09-30
- 1.1.1 — 2015-09-01
- 1.1.0 — 2015-05-05
- 1.0.1 — 2014-10-10
- 1.0.0 — 2014-10-10

## README

urllib-sync
---------------

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![David deps][david-image]][david-url]
[![node version][node-image]][node-url]
[![Gittip][gittip-image]][gittip-url]

[npm-image]: https://img.shields.io/npm/v/urllib-sync.svg?style=flat-square
[npm-url]: https://npmjs.org/package/urllib-sync
[travis-image]: https://img.shields.io/travis/node-modules/urllib-sync.svg?style=flat-square
[travis-url]: https://travis-ci.org/node-modules/urllib-sync
[coveralls-image]: https://img.shields.io/coveralls/node-modules/urllib-sync.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/node-modules/urllib-sync?branch=master
[david-image]: https://img.shields.io/david/node-modules/urllib-sync.svg?style=flat-square
[david-url]: https://david-dm.org/node-modules/urllib-sync
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.11-red.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[gittip-image]: https://img.shields.io/gittip/dead-horse.svg?style=flat-square
[gittip-url]: https://www.gittip.com/dead-horse/

sync http request powered by [urllib](https://github.com/node-modules/urllib) 
and spawnSync.

___Notice: Only support node v0.11.13+___

## Installation

```bash
$ npm install urllib-sync --save
```

## Usage

```js
var request = require('urllib-sync').request;

var res = request('https://github.com');
// res should have status, data, headers
```

more options please check out [urllib](https://github.com/node-modules/urllib). But unfortunately, `urllib-sync` ___do not support streams and agents now___.

### writeFile

If `options.writeFile` is present, the result of request will write into this file directly.


### License

MIT

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