@types/parse-node-version
TypeScript definitions for parse-node-version
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/parse-node-version 
SYNC missed versions from official npm registry.

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

// Type definitions for parse-node-version 1.0
// Project: https://github.com/gulpjs/parse-node-version#readme
// Definitions by: Ivan Nikolić <https://github.com/niksy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 07 Oct 2021 18:01:31 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ivan Nikolić.

Current Tags

  • 1.0.0                                ...           latest (5 years ago)
  • 1.0.0                                ...           ts3.7 (5 years ago)
  • 1.0.0                                ...           ts3.8 (5 years ago)
  • 1.0.0                                ...           ts3.9 (5 years ago)
  • 1.0.0                                ...           ts4.0 (5 years ago)
  • 1.0.0                                ...           ts4.1 (5 years ago)
  • 1.0.0                                ...           ts4.2 (5 years ago)
  • 1.0.0                                ...           ts4.3 (5 years ago)
  • 1.0.0                                ...           ts4.4 (5 years ago)
  • 1.0.0                                ...           ts4.5 (5 years ago)
  • 1.0.0                                ...           ts4.6 (5 years ago)
  • 1.0.0                                ...           ts4.7 (5 years ago)
  • 1.0.0                                ...           ts4.8 (5 years ago)
  • 1.0.0                                ...           ts4.9 (5 years ago)
  • 1.0.0                                ...           ts5.0 (5 years ago)
  • 1.0.0                                ...           ts5.1 (5 years ago)
  • 1.0.0                                ...           ts5.2 (5 years ago)
  • 1.0.0                                ...           ts5.3 (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |