Socket
Socket
Sign inDemoInstall

flux.js

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    flux.js

Color temperature management for web.


Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Flux.js

Bring color temeperature management to the web. Adjust website color palette according to how light or dark it is
outside for the user. When night comes it is much better if screen is adjusted to a warmer color temperature so it
wouldn't be blindingly bright at 11PM.

Example

View live example here.

GIF demo

How to use

Install library either via npm npm install flux.js and load it via var Flux = require('flux.js');.

Download minified library from github and inject it into your page. Injected script will make Flux library available as a global class.

<script src="flux.min.js"></script>

Initialize and immediately adjust color temperature of the page.

var flux = new Flux().adjustTemperature();

Live color adjustment. Every minute Flux will try to detect change in day lighting - if that happens it will adjust
page color temperature accordingly.

var flux = new Flux();
setInterval(function() {
  flux.adjustTemperature();
}, 60000);

Keywords

FAQs

Last updated on 09 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc