# json-date-parser

> Minimal function suitable for passing to JSON.parse to revive common date-time strings into Date objects

Latest version **1.0.1** (published 2017-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install json-date-parser
pnpm add json-date-parser
yarn add json-date-parser
bun add json-date-parser
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-02-03 |
| First published | 2017-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Daniel Earwicker |
| Maintainers | danielearwicker |
| Keywords | json, date, parser |

## Links

- npm: https://www.npmjs.com/package/json-date-parser
- Repository: https://github.com/danielearwicker/json-date-parser
- Homepage: https://github.com/danielearwicker/json-date-parser#readme
- Issues: https://github.com/danielearwicker/json-date-parser/issues
- npm.io page: https://npm.io/package/json-date-parser

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-02-03
- 1.0.0 — 2017-02-03

## README

# json-date-parser
Minimal function suitable for passing to JSON.parse to revive common date-time strings (including ISO and those weird .NET ones) into Date objects.

Implementation is cribbed straight from: [json.date-extensions](https://github.com/RickStrahl/json.date-extensions).

Differences:
* Instead of polluting the core `JSON` object, it defines a completely separate function.
* TypeScript type information is included.

## Installation

    npm install --save json-date-parser

## Usage

```ts
import { jsonDateParser } from "json-date-parser"

// Call standard JSON parser but use jsonDateParser as a "reviver"
var parsedStuff = JSON.parse(stringOfJson, jsonDateParser);
```

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