# @segment/to-iso-string

> Cross-browser toISOString support.

Latest version **1.0.1** (published 2016-05-17) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install @segment/to-iso-string
pnpm add @segment/to-iso-string
yarn add @segment/to-iso-string
bun add @segment/to-iso-string
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-05-17 |
| First published | 2015-05-21 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Segment |
| Maintainers | segment |
| Keywords | iso, format, iso8601, date, isostring, toISOString |

## Links

- npm: https://www.npmjs.com/package/@segment/to-iso-string
- Repository: https://github.com/segmentio/to-iso-string
- Homepage: https://github.com/segmentio/to-iso-string#readme
- Issues: https://github.com/segmentio/to-iso-string/issues
- npm.io page: https://npm.io/package/@segment/to-iso-string

## Recent versions

- 1.0.1 (latest) — 2016-05-17
- 0.0.2 — 2015-05-21

## README

# to-iso-string

[![CircleCI](https://circleci.com/gh/segmentio/to-iso-string.svg?style=shield&circle-token=ab66b7ed28e7126456fae4c7dde07d6de9924381)](https://circleci.com/gh/segmentio/to-iso-string)
[![Codecov](https://img.shields.io/codecov/c/github/segmentio/to-iso-string/master.svg?maxAge=2592000)](https://codecov.io/gh/segmentio/to-iso-string)

  
Cross-browser `toISOString` support.

## Installation

```sh
npm install to-iso-string
```

## Example

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

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

---
_Source: https://npm.io/package/@segment/to-iso-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
