# @types/parse-node-version

> TypeScript definitions for parse-node-version

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

## Install

```sh
npm install @types/parse-node-version
pnpm add @types/parse-node-version
yarn add @types/parse-node-version
bun add @types/parse-node-version
```

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

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

## Links

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

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts3.7) — 2021-10-07
- 1.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/parse-node-version`

# Summary
This package contains type definitions for parse-node-version (https://github.com/gulpjs/parse-node-version#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-node-version.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-node-version/index.d.ts)
````ts
interface ParsedNodeVersion {
    /**
     * Major version
     */
    major: number;
    /**
     * Minor version
     */
    minor: number;
    /**
     * Patch version
     */
    patch: number;
    /**
     * Pre-release version
     */
    pre: string;
    /**
     * Build information
     */
    build: string;
}

/**
 * Takes a Node version string (usually `process.version`) and returns an object
 * with the `major`/`minor`/`patch` (which will all be numbers) and `pre`/`build`
 * keys (which will always be a string). If the version doesn't contain any
 * pre-release or build information, the properties will be returned
 * as empty string.
 *
 * @param nodeVersionString Node version string
 */
declare function parseNodeVersion(nodeVersionString: string): ParsedNodeVersion;

export = parseNodeVersion;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Ivan Nikolić](https://github.com/niksy).

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