All files index.js

100% Statements 12/12
100% Branches 0/0
100% Functions 2/2
100% Lines 12/12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 231x   1x 1x 1x 1x 1x     1x       46x 46x     21x 21x 21x      
require('./array-includes-shim');
 
const Camera = require('./camera');
const Microphone = require('./microphone');
const Player = require('./player');
const Speaker = require('./speaker');
const install = require('./install');
 
 
module.exports = {
  Camera,
  Microphone,
  Player: function(args) {
    install('madplay');
    return new Player(args);
  },
  Speaker: function(args) {
    install('espeak');
    install('madplay');
    return new Speaker(args);
  },
};