is-night-mode
Check if is night mode
Install
$ npm install is-night-mode# or $ yarn add is-night-mode
Usage
const isNightMode = ;// default optionsconst options = day: 6 night: 20 checkLocalStorage: false itemName: "night-mode" checkOSTheme: false; ; // without passing options default options are defined//=> true || false; // with passing custom options//=> true || false
License
MIT © Abdessalam BENHARIRA