{
  "$schema": "https://doc-kit.nodejs.org/schemas/api-doc/1.0.1.json",
  "id": "ranges",
  "path": "/ranges",
  "type": "module",
  "module": "ranges",
  "title": "`@nodevu/ranges`",
  "introducedIn": null,
  "sourceLink": {
    "path": "ranges/index.js",
    "url": "https://github.com/cutenode/nodevu/blob/main/ranges/index.js"
  },
  "stability": null,
  "added": [],
  "deprecated": [],
  "removed": [],
  "napiVersion": [],
  "changes": [],
  "description": "Works out ranges of Node.js versions, such as every release of the Current\nline or of the active LTS lines, with the newest and oldest releases of each.\nThe ranges are named by the aliases of [`@nodevu/aliases`](aliases.html).\n\n```bash\nnpm install @nodevu/ranges\n```\n\nAsk for one range, several, or all of them:\n\n```js\nconst ranges = require('@nodevu/ranges');\n\nconst data = await ranges(['current', 'lts/active']);\n\nconsole.log(data.current.newest);\n```",
  "summary": "Works out ranges of Node.js versions, such as every release of the Current line or of the active LTS lines, with the newest and oldest releases of each. The ranges are named by the aliases of `@nodevu/aliases`.",
  "examples": [
    {
      "language": "bash",
      "displayName": null,
      "code": "npm install @nodevu/ranges"
    },
    {
      "language": "js",
      "displayName": null,
      "code": "const ranges = require('@nodevu/ranges');\n\nconst data = await ranges(['current', 'lts/active']);\n\nconsole.log(data.current.newest);"
    }
  ],
  "children": [
    {
      "kind": "method",
      "id": "rangesfilter-options",
      "name": "ranges",
      "title": "`ranges([filter[, options]])`",
      "scope": "module",
      "overloadOf": null,
      "stability": null,
      "added": [],
      "deprecated": [],
      "removed": [],
      "napiVersion": [],
      "changes": [],
      "signature": {
        "parameters": [
          {
            "name": "filter",
            "type": {
              "text": "string | string[]",
              "links": [
                {
                  "name": "string",
                  "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type",
                  "start": 0,
                  "end": 6
                },
                {
                  "name": "string",
                  "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type",
                  "start": 9,
                  "end": 15
                }
              ]
            },
            "description": "One or more [aliases](aliases.html) to work out.",
            "default": "`'all'`, which works out every range",
            "optional": true,
            "rest": false,
            "properties": []
          },
          {
            "name": "options",
            "type": {
              "text": "Object",
              "links": [
                {
                  "name": "Object",
                  "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                  "start": 0,
                  "end": 6
                }
              ]
            },
            "description": "Passed to [`nodevu()`](core.html#nodevuoptions), to set a\ncustom `fetch` or `now`.",
            "default": null,
            "optional": true,
            "rest": false,
            "properties": []
          }
        ],
        "returns": {
          "type": {
            "text": "Promise<Object>",
            "links": [
              {
                "name": "Promise",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise",
                "start": 0,
                "end": 7
              },
              {
                "name": "Object",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                "start": 8,
                "end": 14
              }
            ]
          },
          "description": "Fulfills with an object that has a key per\nrange, described in [Ranges](#ranges). A range with no releases is left\nout."
        }
      },
      "description": "Rejects with an {Error} when `filter` holds an unknown alias, or is neither a\nstring nor an array.\n\n```js\nconst data = await ranges('alpha', { now: '2026-12-15' });\n```",
      "summary": "Rejects with an {Error} when `filter` holds an unknown alias, or is neither a string nor an array.",
      "examples": [
        {
          "language": "js",
          "displayName": null,
          "code": "const data = await ranges('alpha', { now: '2026-12-15' });"
        }
      ],
      "children": []
    },
    {
      "kind": "section",
      "id": "ranges",
      "name": "Ranges",
      "title": "Ranges",
      "scope": "module",
      "overloadOf": null,
      "stability": null,
      "added": [],
      "deprecated": [],
      "removed": [],
      "napiVersion": [],
      "changes": [],
      "description": "Each range has the versions in it, newest first, and the newest and oldest\nof them. A field with nothing to point to, like `oldestSecurity` on a line\nthat hasn't had a security release, is `undefined`, and left out of JSON.\n\nThe releases in `versions`, and `newest`, `oldest`, `newestLts`, and\n`newestSecurity` in the `all` range, are versions with a `v`, such as\n`'v20.18.0'`. The other LTS and security fields come from\n[`@nodevu/core`](core.html#linesupport), without one, such as `'20.9.0'`.",
      "summary": "Each range has the versions in it, newest first, and the newest and oldest of them. A field with nothing to point to, like `oldestSecurity` on a line that hasn't had a security release, is `undefined`, and left out of JSON.",
      "examples": [],
      "children": [
        {
          "kind": "property",
          "id": "dataall",
          "name": "all",
          "title": "`data.all`",
          "scope": "module",
          "overloadOf": null,
          "stability": null,
          "added": [],
          "deprecated": [],
          "removed": [],
          "napiVersion": [],
          "changes": [],
          "type": {
            "text": "Object",
            "links": [
              {
                "name": "Object",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                "start": 0,
                "end": 6
              }
            ]
          },
          "default": null,
          "description": "",
          "summary": "",
          "examples": [],
          "children": []
        },
        {
          "kind": "property",
          "id": "dataalpha",
          "name": "alpha",
          "title": "`data.alpha`",
          "scope": "module",
          "overloadOf": null,
          "stability": null,
          "added": [],
          "deprecated": [],
          "removed": [],
          "napiVersion": [],
          "changes": [],
          "type": {
            "text": "Object",
            "links": [
              {
                "name": "Object",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                "start": 0,
                "end": 6
              }
            ]
          },
          "default": null,
          "description": "",
          "summary": "",
          "examples": [],
          "children": []
        },
        {
          "kind": "property",
          "id": "datacurrent",
          "name": "current",
          "title": "`data.current`",
          "scope": "module",
          "overloadOf": null,
          "stability": null,
          "added": [],
          "deprecated": [],
          "removed": [],
          "napiVersion": [],
          "changes": [],
          "type": {
            "text": "Object",
            "links": [
              {
                "name": "Object",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                "start": 0,
                "end": 6
              }
            ]
          },
          "default": null,
          "description": "",
          "summary": "",
          "examples": [],
          "children": []
        },
        {
          "kind": "property",
          "id": "dataltslatest",
          "name": "['lts/latest']",
          "title": "`data['lts/latest']`",
          "scope": "module",
          "overloadOf": null,
          "stability": null,
          "added": [],
          "deprecated": [],
          "removed": [],
          "napiVersion": [],
          "changes": [],
          "type": {
            "text": "Object",
            "links": [
              {
                "name": "Object",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                "start": 0,
                "end": 6
              }
            ]
          },
          "default": null,
          "description": "",
          "summary": "",
          "examples": [],
          "children": []
        },
        {
          "kind": "property",
          "id": "dataltsactive",
          "name": "['lts/active']",
          "title": "`data['lts/active']`",
          "scope": "module",
          "overloadOf": null,
          "stability": null,
          "added": [],
          "deprecated": [],
          "removed": [],
          "napiVersion": [],
          "changes": [],
          "type": {
            "text": "Object",
            "links": [
              {
                "name": "Object",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                "start": 0,
                "end": 6
              }
            ]
          },
          "default": null,
          "description": "",
          "summary": "",
          "examples": [],
          "children": []
        },
        {
          "kind": "property",
          "id": "dataltsmaintenance",
          "name": "['lts/maintenance']",
          "title": "`data['lts/maintenance']`",
          "scope": "module",
          "overloadOf": null,
          "stability": null,
          "added": [],
          "deprecated": [],
          "removed": [],
          "napiVersion": [],
          "changes": [],
          "type": {
            "text": "Object",
            "links": [
              {
                "name": "Object",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                "start": 0,
                "end": 6
              }
            ]
          },
          "default": null,
          "description": "",
          "summary": "",
          "examples": [],
          "children": []
        },
        {
          "kind": "property",
          "id": "dataeol",
          "name": "eol",
          "title": "`data.eol`",
          "scope": "module",
          "overloadOf": null,
          "stability": null,
          "added": [],
          "deprecated": [],
          "removed": [],
          "napiVersion": [],
          "changes": [],
          "type": {
            "text": "Object",
            "links": [
              {
                "name": "Object",
                "href": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object",
                "start": 0,
                "end": 6
              }
            ]
          },
          "default": null,
          "description": "",
          "summary": "",
          "examples": [],
          "children": []
        }
      ]
    }
  ]
}