# nm-request

> Request url and output result

Latest version **0.0.2-12** (published 2014-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install nm-request
pnpm add nm-request
yarn add nm-request
bun add nm-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.2-12 |
| Published | 2014-02-01 |
| First published | 2014-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | martin nilsson |
| Maintainers | codersthlm |
| Keywords | monitoring, node, compare |

## Links

- npm: https://www.npmjs.com/package/nm-request
- Repository: https://github.com/codersthlm/nm-request
- Homepage: http://martin.eu01.aws.af.cm
- Issues: https://github.com/codersthlm/nm-request/issues
- npm.io page: https://npm.io/package/nm-request

## Dependencies (2)

- [request](https://npm.io/package/request.md) 2.33.x
- [optimist](https://npm.io/package/optimist.md) 0.6.x

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.2-12 (latest) — 2014-02-01
- 0.0.2-11 — 2014-02-01
- 0.0.2-10 — 2014-02-01
- 0.0.2-9 — 2014-02-01
- 0.0.2-8 — 2014-02-01
- 0.0.2-7 — 2014-02-01
- 0.0.2-6 — 2014-02-01
- 0.0.2-5 — 2014-02-01
- 0.0.2-4 — 2014-02-01
- 0.0.2-3 — 2014-02-01
- 0.0.2-2 — 2014-02-01
- 0.0.2-1 — 2014-02-01
- 0.0.2 — 2014-02-01
- 0.0.1 — 2014-02-01

## README

##nm-request##

nm-request can be used to request an URL and get time and status back.
You can use it from node.js with require("nm-request") but also from command line.

Typically use would be for monitoring uptime of a website.

Data returned:
`{
  requestTime: 1923,
  statusCode: 200,
  startDate: someDate,
  isSuccess: true,
  baseLineStatusCode: 200,
  baseLineTime: 99
}
`


##From node.js###

`var nmrequest = require('nm-request');`

`var options = {
   url:'http://npmjs.org',
   baseLineUrl:'http://www.google.se',
   timeout:10000
}`

`nmrequest(options, callback);`


##From command line###
`
node node_modules/nm-request/index.js --url http://npmjs.org --baseLineUrl http://www.google.se --timeout 10000
`

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