1.5.0 • Published 5 years ago

nat-upnp-wrapper v1.5.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

#nat-upnp-wrapper This is a wrapper for the nat-upnp module.

##Script Usage

Map port

const mapper = require('nat-upnp-wrapper');
mapper.map(options).then(response => console.log(response.success));

Options:

{
    "port": 80, // or [public,private]
    "ports": [80,443,[8081,8082]], // takes priority
    "protocol": "UDP" // defaults to "TCP"
}

Unmap port

mapper.unmap(options).then(response => ...);

Options

{
    "port": 80,
    "ports": [80,443,8081],
    "protocol": "UDP"
}

Get Mappings

mapper.mappings(true).then(response => console.log(response.results));

Set to true for local results. Defaults to false.

Get Public IP Address

mapper.ip().then(ip => console.log(ip));
1.5.0

5 years ago

1.4.9

5 years ago

1.4.8

5 years ago

1.4.7

5 years ago

1.4.6

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.0.0

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago