
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
sunrise-api
Advanced tools
Get the sunrise and sunset times for a given location.
npm install sunrise-api
const sunrise = require("sunrise-api");
(async () => {
await sunrise(-36.8484437, 174.7600023);
/* {
sunrise: '2020-03-19T18:24:27+00:00',
sunset: '2020-03-20T06:32:06+00:00',
solarNoon: '2020-03-20T00:28:16+00:00',
dayLength: 43659,
civilTwilightBegin: '2020-03-19T17:58:41+00:00',
civilTwilightEnd: '2020-03-20T06:57:52+00:00',
nauticalTwilightBegin: '2020-03-19T17:28:29+00:00',
nauticalTwilightEnd: '2020-03-20T07:28:04+00:00',
astronomicalTwilightBegin: '2020-03-19T16:57:52+00:00',
astronomicalTwilightEnd: '2020-03-20T07:58:40+00:00
} */
})();
Type: number
The Latitude of the location.
Type: number
The longitude of the location.
Type: object
Type: string
Default: today
Date to get the information for in the YYYY - MM - DD format or today.
Data provided by https://sunrise-sunset.org/api.
FAQs
Get the sunrise and sunset times for a given location.
We found that sunrise-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.