# node-request

> http request .using for get,post,and post file.

Latest version **0.0.3** (published 2013-06-18) · BSD license · 0 weekly downloads

## Install

```sh
npm install node-request
pnpm add node-request
yarn add node-request
bun add node-request
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2013-06-18 |
| First published | 2013-06-18 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yizhiren |
| Maintainers | sxyizhiren |
| Keywords | http, request, multipart |

## Links

- npm: https://www.npmjs.com/package/node-request
- Repository: https://github.com/sxyizhiren/simple-request
- npm.io page: https://npm.io/package/node-request

## Dependencies (4)

- [step](https://npm.io/package/step.md) ~0.0.5
- [assert](https://npm.io/package/assert.md) ~0.4.9
- [bufferhelper](https://npm.io/package/bufferhelper.md) ~0.2.0
- [tough-cookie](https://npm.io/package/tough-cookie.md) ~0.9.15

## 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

- 0.0.3 (latest) — 2013-06-18

## README

var SimpleRequest=require('./lib/simple-request');

//get text
var obj={};
var url='http://www.baidu.com';

SimpleRequest.get(url,null,null,obj,'txt',function(){
    console.log(obj.Content.length);
});

//post
var obj2={};
var postData=require('querystring').stringify({
    'email': 15858178942
});
var url='http://www.renren.com/ajax/ShowCaptcha';

SimpleRequest.post(url,null,postData,null,obj2,'txt',function(){
    console.log(obj2.Content);
});

//get json
var obj3={};
var url='http://login.renren.com/ajax/getEncryptKey';
SimpleRequest.get(url,null,null,obj3,'json',function(){
    console.log('parse ok? '+obj3.parseStatus);
    console.log(obj3.Content);
});

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