An open API service indexing awesome lists of open source software.

https://github.com/baslr/wanip

get the wan ipv4 from different resolvers
https://github.com/baslr/wanip

Last synced: 10 months ago
JSON representation

get the wan ipv4 from different resolvers

Awesome Lists containing this project

README

          

# wanip
get the wan ipv4 from different resolvers

## prerequisites

* access to `curl`, `dig` and `tr`

## pure typescript package

your relevant `webpack.config.js` should look like this
```javascript
module: {
rules: [
{
test: /\.ts$/,
loader: 'ts-loader',
options: {
allowTsInNodeModules: true
}
}
]
},
```
your relevant `tsconfig.json` should look like this
```json
"include": [
"src/**/*",
"node_modules/wanip"
]
```

If you have to use js, you can require it via
```js
const checkipv4 = require('wanip/dist').checkIpv4;
```