Home

Awesome

Build Status NPM version

upnpserver

upnpserver icon

UpnpServer is a fast and light UPnP server written in NodeJS. This version does not need an external database (mysql, mongodb), it stores all information in memory.

Compatibility

Installation

$ npm install upnpserver

Command line

For command line, install upnpserver-cli package.

API Usage

var Server = require("upnpserver");

var server = new Server({ /* configuration, see below */ }, [
  '/home/disk1',
  { path: '/home/myDisk' },
  { path: '/media/movies', mountPoint: '/My movies'},
  { path: '/media/albums', mountPoint: '/Personnal/My albums', type: 'music' }
]);

server.start();

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

Testing

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

make test

Author

Olivier Oeuillot

Contributors

https://github.com/oeuillot/upnpserver/graphs/contributors