https://github.com/boneskull/seneca-external-ip-check
Seneca plugin to return the external IP of server
https://github.com/boneskull/seneca-external-ip-check
Last synced: 6 months ago
JSON representation
Seneca plugin to return the external IP of server
- Host: GitHub
- URL: https://github.com/boneskull/seneca-external-ip-check
- Owner: boneskull
- License: mit
- Created: 2016-06-04T19:35:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T20:46:53.000Z (about 9 years ago)
- Last Synced: 2024-10-29T22:37:19.535Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# seneca-external-ip-check
[](https://www.npmjs.com/package/seneca-external-ip-check) [](https://travis-ci.org/boneskull/seneca-external-ip-check) [](https://codecov.io/gh/boneskull/seneca-external-ip-check)
> Seneca plugin to return the external IP of server
## Requirements
Node.js >= v6
## Install
```shell
$ npm i seneca seneca-external-ip-check
```
## Usage
```js
require('seneca')()
.use(require('seneca-external-ip-check'), configuration);
```
`configuration` is passed directly to [external-ip](https://www.npmjs.com/package/external-ip) module, and is entirely optional.
## Action Patterns
### Get External IP Address
`role:external-ip-check`, `cmd:get-ip`
Returns:
- `{ip: ""}`
## License
© 2016 [Christopher Hiller](https://boneskull.com). Licensed MIT.