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
- Host: GitHub
- URL: https://github.com/baslr/wanip
- Owner: baslr
- Created: 2020-02-14T20:41:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T14:01:03.000Z (over 6 years ago)
- Last Synced: 2025-08-09T18:52:46.040Z (11 months ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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;
```