wanip
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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;

Readme

Keywords

Package Sidebar

Install

npm i wanip

Weekly Downloads

2

Version

1.0.3

License

AGPL-3.0

Unpacked Size

4.8 kB

Total Files

6

Last publish

Collaborators

  • baslr