UNPKG

@smartface/emulator-dispatcher

Version:

Handles Emulator Dispatcher Part of SmartfaceCloud

19 lines (15 loc) 337 B
module.exports = function () { const self = this; this.map = {}; this.add = function (key, value) { self.map[key] = value; }; this.toString = function () { let data = ''; for (const key in self.map) { data += `${key} ${self.map[key]}\n`; } return data; }; this.FILE_NAME = 'descriptor.txt'; };