Get display name for a device <p>For a list of supported devices, see getSupportedDevices()</p><pre><code>console.log resin.device.getDisplayName('raspberry-pi')
</code></pre>
</span>
</li>
<li>
<spanclass='signature'>
<ahref='#getDeviceSlug-'>
~
(String)
<b>getDeviceSlug</b><span>(device)</span>
</a>
</span>
<spanclass='desc'>
Get device slug <pre><code>console.log resin.device.getDeviceSlug('Raspberry Pi')
</code></pre>
</span>
</li>
<li>
<spanclass='signature'>
<ahref='#getSupportedDevices-'>
~
(Array<String>)
<b>getSupportedDevices</b><span>()</span>
</a>
</span>
<spanclass='desc'>
Get a list of supported devices <pre><code>devices = resin.device.getSupportedDevices()
console.log(devices)
</code></pre>
</span>
</li>
</ul>
<h2>Method Details</h2>
<divclass='methods'>
<divclass='method_details'>
<pclass='signature'id='getDisplayName-'>
~
(String)
<b>getDisplayName</b><span>(device)</span>
<br>
</p>
<divclass='docstring'>
<p>Get display name for a device</p><p>For a list of supported devices, see getSupportedDevices()</p><pre><code>console.log resin.device.getDisplayName('raspberry-pi') # Raspberry Pi
console.log resin.device.getDisplayName('rpi') # Raspberry Pi
</code></pre>
</div>
<divclass='tags'>
<h3>Parameters:</h3>
<ulclass='param'>
<li>
<spanclass='name'>device</span>
<spanclass='type'>
(
<tt>String</tt>
)
</span>
—
<spanclass='desc'>device name </span>
</li>
</ul>
<h3>Returns:</h3>
<ulclass='return'>
<li>
<spanclass='type'></span>
(
<tt>String</tt>
)
—
<spanclass='desc'>device display name or 'Unknown'</span>