Skip to content

baslr/wanip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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;

About

get the wan ipv4 from different resolvers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published