# spacetime-cal

> a CLI calendar

Latest version **0.0.1** (published 2021-03-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install spacetime-cal
pnpm add spacetime-cal
yarn add spacetime-cal
bun add spacetime-cal
```

Provides the commands `scal`, `spacetime-cal`.

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-03-14 |
| First published | 2021-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 9 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4106 |
| Maintainers | spencermountain |

## Links

- npm: https://www.npmjs.com/package/spacetime-cal
- Repository: https://github.com/spencermountain/spacetime
- Homepage: https://github.com/spencermountain/spacetime/tree/master/plugins/spacetime-cal
- Issues: https://github.com/spencermountain/spacetime/issues
- npm.io page: https://npm.io/package/spacetime-cal

## Dependencies (9)

- [ink](https://npm.io/package/ink.md) ^3.0.8
- [meow](https://npm.io/package/meow.md) ^9.0.0
- [amble](https://npm.io/package/amble.md) ^1.3.0
- [react](https://npm.io/package/react.md) ^16.14.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.5
- [spacetime](https://npm.io/package/spacetime.md) ^6.13.1
- [compromise](https://npm.io/package/compromise.md) ^13.10.2
- [import-jsx](https://npm.io/package/import-jsx.md) ^4.0.0
- [compromise-dates](https://npm.io/package/compromise-dates.md) ^1.5.3

## Recent versions

- 0.0.1 (latest) — 2021-03-14

## README

<div align="center">

  <div>a CLI calendar</div>
  <div><img src="https://cloud.githubusercontent.com/assets/399657/23590290/ede73772-01aa-11e7-8915-181ef21027bc.png" /></div>

  <div align="center">
    <a href="https://npmjs.org/package/spacetime-cal">
      <img src="https://img.shields.io/npm/v/spacetime-cal.svg?style=flat-square" />
    </a>
    <a href="https://unpkg.com/spacetime-cal/builds/spacetime-cal.min.js">
      <img src="https://badge-size.herokuapp.com/spencermountain/spacetime-cal/master/builds/spacetime-cal.min.js" />
    </a>
  </div>
  <div align="center">
    <code>npm i -g spacetime-cal</code>
  </div>
  <sub>
    by
    <a href="https://spencermountain.github.io/">Spencer Kelly</a>
  </sub>
</div>
<p></p>

The [cal](https://en.m.wikipedia.org/wiki/Cal_(Unix)) command is one of the earliest, and longest-lasting UNIX shell commands. It is beautiful.

This is just the same thing, basically. I've tried making it easier to hack, and nicer to look-at.

Thats's all.

<img width="327" alt="image" src="https://user-images.githubusercontent.com/399657/111079058-a9b0d580-84ce-11eb-82be-99357fe2605a.png">


<!-- spacer -->
<img height="30px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>

Unix applications have a real aesthetic - here's how you can get the weeks to start on a Monday, using `cal` [¹](http://hints.macworld.com/article.php?story=20040625094428394)- 
```bash
cal | awk '{ print " "$0; getline; print " Mo Tu We Th Fr Sa Su"; \
getline; if (substr($0,1,2) == " 1") print "                    1 "; \
do { prevline=$0; if (getline == 0) exit; print " " \
substr(prevline,4,17) " " substr($0,1,2) " "; } while (1) }'
```

i mean,
```bash
spacetime-cal --monday
```

### Options

Built with [spacetime](https://github.com/spencermountain/spacetime), [compromise-dates](https://github.com/spencermountain/compromise/tree/master/plugins/dates), and [Ink](https://github.com/vadimdemedes/ink).

MIT

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