Skip to content

romainberger/has-touchbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, if your mac does not have a touchbar, 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
    }
})

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published