Socket
Book a DemoInstallSign in
Socket

convert-dates

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-dates

Convert all Date instances in an object.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

convert-dates

Convert all Date instances in an object.

Installation

$ component install segmentio/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.

License

MIT

Keywords

date

FAQs

Package last updated on 10 Feb 2014

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