🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@segment/convert-dates

Package Overview
Dependencies
Maintainers
57
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@segment/convert-dates

Convert all Date instances in an object.

1.1.0
latest
Source
npm
Version published
Weekly downloads
309
-12.22%
Maintainers
57
Weekly downloads
 
Created
Source

convert-dates

CircleCI Codecov

Convert all Date instances in an object.

Installation

$ npm install @segment/convert-dates

Example

var convert = require('convert-dates');
var obj = { date: new Date() };

obj = convert(obj, function (date) { return 'string'; });

obj.date; // "string"

API

convertDates(object, converter)

Passes all of the Date values in an object through the converter function.

Keywords

date

FAQs

Package last updated on 19 Oct 2017

Did you know?

Socket

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