Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Latest commit

 

History

History
43 lines (29 loc) · 1.15 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.15 KB

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.