# email-date-header

> Creates an RFC compliant email date header.

Latest version **1.0.0** (published 2014-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install email-date-header
pnpm add email-date-header
yarn add email-date-header
bun add email-date-header
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-06-28 |
| First published | 2014-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joseph Spencer |
| Maintainers | jsdevel |
| Keywords | email, date, header |

## Links

- npm: https://www.npmjs.com/package/email-date-header
- Repository: https://github.com/jsdevel/node-email-date-header
- Issues: https://github.com/jsdevel/node-email-date-header/issues
- npm.io page: https://npm.io/package/email-date-header

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-06-28

## README

# email-date-header [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url]
> Creates an RFC compliant email date header.

## Example
```javascript
var emailDateHeader = require('email-date-header');
var today = new Date();// 'Sat Jun 28 2014 00:09:33 GMT-0700 (MST)'
var header = emailDateHeader(today);

header.name === 'Date';// true
header.value === '28 Jun 2014 00:09:33 -0700';// true
```

## A note about timezones
Javascript Date converts the offset of a given date object to system settings
so your results may differ across machines.  Consider this scenario:

You have a cluster of servers each with their system clocks adjusted to their
specific localities spread over the world in some data centers.  Your application
distributes an email message to send to all your servers.  Each has the potential
to generate a different header string representing their timezone.

You have been warned :|

##LICENSE
``````
The MIT License (MIT)

Copyright (c) 2014 Joseph Spencer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
``````

[downloads-image]: http://img.shields.io/npm/dm/node-email-date-header.svg
[npm-url]: https://npmjs.org/package/node-email-date-header
[npm-image]: http://img.shields.io/npm/v/node-email-date-header.svg

[travis-url]: https://travis-ci.org/jsdevel/node-email-date-header
[travis-image]: http://img.shields.io/travis/jsdevel/node-email-date-header.svg

[coveralls-url]: https://coveralls.io/r/jsdevel/node-email-date-header
[coveralls-image]: http://img.shields.io/coveralls/jsdevel/node-email-date-header/master.svg

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