mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-19 19:29:02 +00:00
9 lines
208 B
CoffeeScript
9 lines
208 B
CoffeeScript
_ = require('lodash')
|
|
DEVICE_NAMES = require('./device-names.json')
|
|
|
|
exports.getDisplayName = (device) ->
|
|
for key, value of DEVICE_NAMES
|
|
if _.indexOf(value, device) isnt -1
|
|
return key
|
|
return 'Unknown'
|