# @types/segment__isodate

> TypeScript definitions for @segment/isodate

Latest version **1.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/segment__isodate
pnpm add @types/segment__isodate
yarn add @types/segment__isodate
bun add @types/segment__isodate
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-11-07 |
| First published | 2023-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51381 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/segment__isodate
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/segment__isodate
- npm.io page: https://npm.io/package/@types/segment__isodate

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts4.2) — 2023-03-04
- 1.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/segment__isodate`

# Summary
This package contains type definitions for @segment/isodate (https://github.com/segmentio/isodate#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/segment__isodate.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/segment__isodate/index.d.ts)
````ts
/**
 * Parse the given ISO date `string` into a native `Date` object.
 *
 * @example
 * import isodate = require('@segment/isodate');
 *
 * const date = isodate.parse('2013-09-04T00:57:26.434Z');
 * date.toISOString(); // "2013-09-04T00:57:26.434Z"
 */
export function parse(iso: string): Date;

/**
 * Check if the given `string` is an ISO date string. `strict` mode will return false for
 * strings without a year, month and date; for example `2013` would be `false`.
 *
 * @example
 * import isodate = require('@segment/isodate');
 *
 * isodate.is('2013-09-04T00:57:26.434Z'); // true
 * isodate.is('string'); // false
 */
export function is(string: string, strict?: boolean): boolean;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

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