before power off
1.0.0
ACPI 전원 버튼 이벤트에서 지정된 콜백을 통화합니다
npm i before-power-off -S
const beforePowerOff = require('before-power-off');
beforePowerOff(callSomeNamedFunction);
beforePowerOff(function(){ // stuff to do before power off });
beforePowerOff( ()=>{ // stuff to do before power off } );
/var/run/acpid.socket 의 전원 버튼 이벤트에 대해서는 청취합니다.once() 가 아닌 .on() 사용하여 내부적으로 등록됩니다.Copyright 2017 Paul Brewer [email protected] 경제 및 금융 기술 컨설팅 LLC
MIT 라이센스의 조건에 따라 사용할 수 있습니다