https://github.com/jwerle/is-localhost
Determine if a host is a localhost
https://github.com/jwerle/is-localhost
Last synced: 9 months ago
JSON representation
Determine if a host is a localhost
- Host: GitHub
- URL: https://github.com/jwerle/is-localhost
- Owner: jwerle
- License: mit
- Created: 2014-04-17T19:45:35.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-26T12:23:17.000Z (almost 12 years ago)
- Last Synced: 2025-04-13T21:40:26.244Z (about 1 year ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
is-localhost
============
Determine if a host is a localhost
## install
```sh
$ npm install is-localhost
```
## usage
```js
var isLocal = require('is-localhost')
isLocal('127.0.0.1'); // true
isLocal('12.34.56.78'); // false
isLocal('::1'); // true
```
## license
MIT