# @weseek/clf-date

> Return the current date in CLF format

Latest version **0.2.1** (published 2018-05-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @weseek/clf-date
pnpm add @weseek/clf-date
yarn add @weseek/clf-date
bun add @weseek/clf-date
```

Provides the command `clf-date`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2018-05-12 |
| First published | 2018-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ryu Sato |
| Maintainers | weseek |
| Keywords | clf-date, clf, common-log-format, common, log, format |

## Links

- npm: https://www.npmjs.com/package/@weseek/clf-date
- Repository: https://github.com/weseek/clf-date
- Homepage: https://github.com/weseek/clf-date#readme
- Issues: https://github.com/weseek/clf-date/issues
- npm.io page: https://npm.io/package/@weseek/clf-date

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.2.1 (latest) — 2018-05-12
- 0.2.0 — 2018-04-25

## README

# @weseek/clf-date

Return the current date in CLF format: %d/%b/%Y:%H:%M:%S %z.

The purpose of this package is to fix the bug ([lludol/clf-date#7](https://github.com/lludol/clf-date/pull/7)).

## Executable

```bash
npm install -g @weseek/clf-date # or yarn global add clf-date

# Without parameter
clf-date

# With parameter (everything which works with Date.parse)
clf-date 2042
```

## Node.js library

```bash
npm install @weseek/clf-date # or yarn add clf-date
```

```js
const clfDate = require('@weseek/clf-date');

// Without parameter it will use the current time.
console.log(clfDate());     # Ex) Output log "12/May/2018:19:29:27 +0900"

// With a Date in parameter.
const date = new Date();
date.setFullYear(2042);
console.log(clfDate(date)); # Ex) Output log "12/May/2042:19:29:27 +0900"
```

## License

[MIT](LICENSE)

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