wanip
v1.0.3
Published
get the wan ipv4 from different resolvers
Downloads
15
Readme
wanip
get the wan ipv4 from different resolvers
prerequisites
- access to
curl
,dig
andtr
pure typescript package
your relevant webpack.config.js
should look like this
module: {
rules: [
{
test: /\.ts$/,
loader: 'ts-loader',
options: {
allowTsInNodeModules: true
}
}
]
},
your relevant tsconfig.json
should look like this
"include": [
"src/**/*",
"node_modules/wanip"
]
If you have to use js, you can require it via
const checkipv4 = require('wanip/dist').checkIpv4;