# @segment/isodate-traverse

> Traverse an object and convert all ISO strings into Dates.

Latest version **1.1.1** (published 2021-05-25) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install @segment/isodate-traverse
pnpm add @segment/isodate-traverse
yarn add @segment/isodate-traverse
bun add @segment/isodate-traverse
```

## 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.1.1 |
| Published | 2021-05-25 |
| First published | 2016-04-07 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Segment |
| Maintainers | markzegarelli, jon.anderson-at-segment.com, warrengreen, kdharaiya, fc-segment, cjo2, sorrel.j, tepahk, steve_at_segment, corey.ching, lcamposg, marinhero, eric.rogner, yannieyip, marcelopv, kiara.daswani, gilomer, anna.choi, alistairbarrell, odoren, arta.razavi, kelcook, gnijor, lauramunozjimenez, parsa-segment, ynguyen, mshwery, flaque, gpsamson, amillet89, av-segment, scruwys1, rowno, chenpengcheng, segmentaimee, eesegment, segmentio, segment-admin, dominicbarnes, ladanazita, anoonan, peripheral, achille-roussel, nettofarah, albert.segment, segment-danielstjules, jlee9595, n2parko, segment-andy-yeo, sahilp, vdemedes, emilio-gomez-lavin, f2prateek, andreiko_ru, xagos, emily.luckette, leifdreizler, alan-segment, tyson_segment, bgamwell, jfabre-segment, uditmehta, hellooimkat, brienne.mcnally, sanscontext, eculver, aultimus, erikdw, fauzyy, jaimal, davidbirdsong, ktrinh, calthomson, yunqiaohuang, dk1027, nickatsegment, nielssegment, knoonan, cdrycroft, yabrira, shse, julee05, kamebkj, ryan_segment, laurenmreeder, tidothegreat, mericsson, prayansh-segmentt, stargaesser, andyguwc, jeremylarkin, bsneed, danieljackins, tomeliaz, segment-seth, xav_segment, bihl, shamil.ataev, james9446, priscilla.giatti, kellylu, smokeybears, jmbuckner, benhorowitz, yolken-segment, nlsun, thomas-pelletier-segment, brian-segment, segment-michael, cohara87, osamakhn, drew-thompson, andy-li, segment-jsingh, vanesng, cvillela, pauljaeinyoo, stevenmiller888, mniehe, iajiboye, stephment, sharadbhadouria, emilyc, maggieyu, anoonan16, durgani, colinlohner, julio.farah, hblanks-segment, rsata, shyaan, juhaelee, akleiner2, kathryn-taylor, andrius-segment, pooyaj, llbsgmt, lab176, valerieernst, emilyluckette, ucarion, solon.aguiar, rjenkinsseg, segment-ulysse, khinkalilover, maloneya, zackurey |
| Keywords | ISO, date, datestring, parse, object, convert |

## Links

- npm: https://www.npmjs.com/package/@segment/isodate-traverse
- Repository: https://github.com/segmentio/isodate-traverse
- Homepage: https://github.com/segmentio/isodate-traverse#readme
- Issues: https://github.com/segmentio/isodate-traverse/issues
- npm.io page: https://npm.io/package/@segment/isodate-traverse

## Dependencies (1)

- [@segment/isodate](https://npm.io/package/@segment/isodate.md) ^1.0.3

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2021-05-25
- 1.1.0 — 2017-09-06
- 1.0.1 — 2016-05-12
- 1.0.0 — 2016-04-07

## README

# isodate-traverse

[![CircleCI](https://circleci.com/gh/segmentio/isodate-traverse.svg?style=shield&circle-token=b57033c1550ba25dffa360fc7e11a3f82e0f9781)](https://circleci.com/gh/segmentio/isodate-traverse)
[![Codecov](https://img.shields.io/codecov/c/github/segmentio/isodate-traverse/master.svg?maxAge=2592000)](https://codecov.io/gh/segmentio/isodate-traverse)

Traverse an object (or array) and convert all ISO strings into Dates.

## Installation

```sh
$ npm install @segment/isodate-traverse
```

## Example

```js
var traverse = require('@segment/isodate-traverse');

var obj = {
  date: '2013-09-04T00:57:26.434Z'
};

var traversed = traverse(obj);
// {
//   date: [object Date]
// }
```

## API

### traverse(obj, [strict])

Traverse an `obj`, converting all ISO strings to real Dates. By default, `strict` mode will be enabled, requiring at least YYYY-MM-DD

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