# dawn-till-dusk

> See sunrise & sunset times 'from dawn till dusk' on your command line

Latest version **0.0.4** (published 2021-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install dawn-till-dusk
pnpm add dawn-till-dusk
yarn add dawn-till-dusk
bun add dawn-till-dusk
```

Provides the command `dtd`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2021-02-24 |
| First published | 2021-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^12 \|\| ^14 \|\| ^15 |
| Dependencies | 6 |
| Unpacked size | 30.8 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | George Gray |
| Maintainers | mrgeorgegray |
| Keywords | sunrise |

## Links

- npm: https://www.npmjs.com/package/dawn-till-dusk
- Repository: https://github.com/mrgeorgegray/dawn-till-dusk
- Homepage: https://github.com/mrgeorgegray/dawn-till-dusk#readme
- Issues: https://github.com/mrgeorgegray/dawn-till-dusk/issues
- npm.io page: https://npm.io/package/dawn-till-dusk

## Dependencies (6)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [yargs](https://npm.io/package/yargs.md) ^15.4.1
- [cli-table3](https://npm.io/package/cli-table3.md) ^0.6.0
- [node-emoji](https://npm.io/package/node-emoji.md) ^1.10.0
- [cache-manager](https://npm.io/package/cache-manager.md) ^3.4.0
- [cache-manager-fs-hash](https://npm.io/package/cache-manager-fs-hash.md) ^0.0.9

## Recent versions

- 0.0.4 (latest) — 2021-02-24
- 0.0.3 — 2021-02-24
- 0.0.1 — 2021-02-22

## README

# dawn-till-dusk 🧛

A simple tool to display the sunrise, sunset and day length based on your location from the comfort of the command line.

[![Maintainability](https://api.codeclimate.com/v1/badges/641c466fdf607d9417ee/maintainability)](https://codeclimate.com/github/mrgeorgegray/dawn-till-dusk/maintainability)
[![Coverage Status](https://coveralls.io/repos/github/mrgeorgegray/dawn-till-dusk/badge.svg?branch=main)](https://coveralls.io/github/mrgeorgegray/dawn-till-dusk?branch=main)
![Status](https://github.com/mrgeorgegray/dawn-till-dusk/actions/workflows/tests.yml/badge.svg)
![npm](https://img.shields.io/npm/v/dawn-till-dusk)
![NPM](https://img.shields.io/npm/l/dawn-till-dusk)

### Example output

![example output](./example.jpg)

### Installation

```
npm i -g dawn-till-dusk
```

### Usage

```
Usage: dtd <command> [options]

Commands:
  index.js dtd  Display sunrise & sunset times

Options:
  --help, -h     Show help                            [boolean] [default: false]
  --version, -v  Show version number                                   [boolean]
  --clean, -c    Clear data cache                     [boolean] [default: false]
  --date, -d     Search by date                      [string] [default: "today"]
  --logging, -l  Output extra logging info            [boolean] [default: false]

Examples:
  dtd -d '2021-08-12'  display sunrise & sunset times for a given day
```

### Credits

- IP Address data from [https://ip-api.com](ip-api.com)
- Sunrise data from [https://sunrise-sunset.org/api](sunrise-sunset.org/api)

---
_Source: https://npm.io/package/dawn-till-dusk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
