Skip to content

Latest commit

 

History

History

oldest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@nodevu/oldest

A module that returns oldest LTS or Security release of a given Node.js release line.

Usage

const { oldest } = require('@nodevu/oldest')

const oldestLts = oldest('v16', 'lts')
const oldestSecurity = oldest('v16', 'security')
const { lts, security } = require('@nodevu/oldest')

const oldestLts = oldest('v16', 'lts')
const oldestSecurity = oldest('v16', 'security')

API

This module exports three functions:

  • oldest(name, type)
    • name (string): Node.js release line name. Examples: v16, v11, v8, v0.10.
    • type (string): lts or security.
  • lts(name)
    • name (string): Node.js release line name. Examples: v16, v11, v8, v0.10.
  • security(name)
    • name (string): Node.js release line name. Examples: v16, v11, v8, v0.10.