nightmode

0.1.1 • Public • Published

nightmode Build Status js-standard-style

Do stuff when the sun is down.

Installation

npm install --save nightmode

Usage

var nightmode = require('nightmode')
 
// Specify coordinates and date
nightmode(['51.5', '-0.1'], new Date()).then(() => {
    // do stuff
})
 
// or leave blank and use today's date and navigator.geolocation
nightmode().then(() => {
    // do stuff
})

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by Simon Brix (@br11x).


This package was initially generated with yeoman and the p generator.

Readme

Keywords

none

Package Sidebar

Install

npm i nightmode

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • briix