Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@segment/convert-dates

Package Overview
Dependencies
3
Maintainers
57
Versions
2
Issues
File Explorer

Advanced tools

@segment/convert-dates

Convert all Date instances in an object.

    1.1.0latest
    GitHub

Version published
Maintainers
57
Weekly downloads
598
increased by15.22%

Weekly downloads

Readme

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

FAQs

Last updated on 19 Oct 2017

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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