# clf-date

> Return the current date in CLF format

Latest version **0.2.1** (published 2022-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install clf-date
pnpm add clf-date
yarn add clf-date
bun add clf-date
```

Provides the command `clf-date`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2022-10-03 |
| First published | 2016-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lludol |
| Maintainers | lludol |
| Keywords | clf-date, clf, common-log-format, common, log, format |

## Links

- npm: https://www.npmjs.com/package/clf-date
- Repository: https://github.com/lludol/clf-date
- npm.io page: https://npm.io/package/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) — 2022-10-03
- 0.2.0 — 2020-05-03
- 0.1.0 — 2017-06-02
- 0.0.4 — 2016-07-21
- 0.0.3 — 2016-07-20
- 0.0.2 — 2016-07-20
- 0.0.1 — 2016-06-30

## README

# clf-date
![Node.js CI](https://github.com/lludol/clf-date/workflows/Node.js%20CI/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/lludol/clf-date/badge.svg?branch=master)](https://coveralls.io/github/lludol/clf-date?branch=master)
[![Code Climate](https://codeclimate.com/github/lludol/clf-date/badges/gpa.svg)](https://codeclimate.com/github/lludol/clf-date)
[![npm version](https://badge.fury.io/js/clf-date.svg)](https://badge.fury.io/js/clf-date)

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

## Executable

```bash
npm install -g 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 clf-date # or yarn add clf-date
```

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

// Without parameter it will use the current time.
console.log(clfDate());

// With a Date in parameter.
const date = new Date();
date.setFullYear(2042);
console.log(clfDate(date);
```

## Contributing

Don't hesitate to [create a pull request](https://github.com/lludol/clf-date/pulls) to improve the project.

## Bugs

If you find a bug or want a new feature, dont'hesitate to [create an issue](https://github.com/lludol/clf-date/issues).

## License

[MIT](LICENSE)

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