# is-localhost-url

> Check if a URL is from localhost

Latest version **1.0.3** (published 2020-05-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install is-localhost-url
pnpm add is-localhost-url
yarn add is-localhost-url
bun add is-localhost-url
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-05-02 |
| First published | 2020-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 10 |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Kiko Beats |
| Maintainers | kikobeats |
| Keywords | check, is, localhost, uri, url |

## Links

- npm: https://www.npmjs.com/package/is-localhost-url
- Repository: https://github.com/Kikobeats/is-localhost-url
- Homepage: https://nicedoc.io/Kikobeats/is-localhost-url
- Issues: https://github.com/Kikobeats/is-localhost-url/issues
- npm.io page: https://npm.io/package/is-localhost-url

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-05-02
- 1.0.2 — 2020-04-27
- 1.0.1 — 2020-04-27
- 1.0.0 — 2020-04-26

## README

# is-localhost-url

> Check if a URL is from localhost

## Install

```bash
$ npm install is-localhost-url --save
```

## Usage

```js
const isLocalhostUrl = require('is-localhost-url')

isLocalhostUrl('http://localhost:3000') // true
isLocalhostUrl('http://example.com') // false
```

## License

**is-localhost-url** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/Kikobeats/is-localhost-url/blob/master/LICENSE.md) License.<br>
Authored and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/Kikobeats/is-localhost-url/contributors).

> [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/Kikobeats) · Twitter [@Kikobeats](https://twitter.com/Kikobeats)

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