Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@segment/to-iso-string

segmentio1.3kSEE LICENSE IN LICENSE1.0.1

Cross-browser toISOString support.

iso, format, iso8601, date, isostring, toISOString

readme

to-iso-string

CircleCI Codecov

Cross-browser toISOString support.

Installation

npm install to-iso-string

Example

var toISOString = require('to-iso-string');
var date = new Date("05 October 2011 14:48 UTC");

toISOString(date);
// "2011-10-05T14:48:00.000Z"

changelog

1.0.1 / 2016-05-17

  • Run tests on node

1.0.0 / 2016-05-12

  • Modernize test/CI harness
  • Remove component support
  • Fix lint errors

0.0.2 - May 12, 2015

  • Fix npm publish issue

0.0.1 - October 16, 2013

:sparkles: