This is a simple module for normalizing the differences in enumerating media devices in webkit (Chrome/Opera) and Mozilla (Firefox).
Because the usages and results of the two implementations differ, and it's nice to normalize the behavior and results.
//promises!const enumerateDevices = ;;//or callbacks!var enumerateDevices = ;;
Test by running
npm start and visiting http://localhost:8880/test
View a demo of the module in use on the test page.