Socket
Socket
Sign inDemoInstall

@segment/isodate-traverse

Package Overview
Dependencies
1
Maintainers
147
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @segment/isodate-traverse

Traverse an object and convert all ISO strings into Dates.


Version published
Weekly downloads
507K
decreased by-22.1%
Maintainers
147
Install size
26.8 kB
Created
Weekly downloads
 

Readme

Source

isodate-traverse

CircleCI Codecov

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

Installation

$ npm install @segment/isodate-traverse

Example

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

Keywords

FAQs

Last updated on 25 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc