has-touchbar

1.0.0 • Public • Published

Has Touchbar npm version npm downloads

A small no-dependency module to tell you if the current machine has a physical touchbar or not.

Note: This module checks for real physical touchbar. Even if you run a touchbar simulator, it will still return false.

Installation

$ yarn add has-touchbar

Usage

const hasTouchbar = require('has-touchbar')
 
hasTouchbar().then(result => {
    if (result) {
        // this computer has a touchbar
    }
    else {
        // no touchbar here
    }
})

Readme

Keywords

Package Sidebar

Install

npm i has-touchbar

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.02 kB

Total Files

4

Last publish

Collaborators

  • romainberger