chinachu-upnp-server

UPnP Server for Chinachu Air.

Usage no npm install needed!

<script type="module">
  import chinachuUpnpServer from 'https://cdn.skypack.dev/chinachu-upnp-server';
</script>

README

Chinachu UPnP Server

chinachu icon

UPnP Server for Chinachu Air.

forked from oeuillot/upnpserver.

Configuration

Server constructor accepts an optional configuration object. At the moment, the following is supported:

  • log Boolean Enable/disable logging. Default: false.
  • logLevel String Specifies log level to print. Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL. Defaults to ERROR.
  • name String Name of server. Default 'Node Server'
  • uuid String UUID of server. (If not specified, a UUID v4 will be generated)
  • hostname String Hostname to bind the server. Default: 0.0.0.0
  • httpPort Number Http port. Default: 10293
  • dlnaSupport Boolean Enable/disable dlna support. Default: true
  • strict Boolean Use only official UPnP attributes. Default: false
  • lang String Specify the language (en, fr) for virtual folder names. Default: en
  • ssdpLog Boolean Enable log of ssdp layer. Default: false
  • ssdpLogLevel String Log level of ssdp layer.

Testing

For testing purposes used mocha framework. To run tests, you should do this:

make test