is-night-mode

1.0.1 • Public • Published

is-night-mode Build Status

Check if is night mode

Install

$ npm install is-night-mode
# or 
$ yarn add is-night-mode

Usage

const isNightMode = require("is-night-mode");
// default options
const options = {
  day: 6,
  night: 20,
  checkLocalStorage: false,
  itemName: "night-mode",
  checkOSTheme: false
};
 
isNightMode(); // without passing options default options are defined
//=> true || false
isNightMode(options); // with passing custom options
//=> true || false

License

MIT © Abdessalam BENHARIRA

/is-night-mode/

    Package Sidebar

    Install

    npm i is-night-mode

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.87 kB

    Total Files

    6

    Last publish

    Collaborators

    • itsabdessalam