承诺的本机
承诺
const dbus = require ( 'promisified-dbus-native' ) ;
dbus . systemBus ( )
. getInterface ( 'org.freedesktop.DBus' , '/org/freedesktop/DBus' , 'org.freedesktop.DBus.Introspectable' )
. then ( iface => iface . Introspect ( ) )
. then ( result => console . log ( result ) ) ;
安装
npm install promisified-dbus-native