Skip to content
HALOWERK

File Formats and Conversion

node chapter module system examples

Code example extraction compares CommonJS and ECMAScript module fences and counts sections demonstrating both. Use it when an agent needs structured chapter facts with a versioned source URL.

POST https://format.halowerk.com/v1/node-chapter-module-system-examples

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
urlstringYes
snapshotSee schemaNo
Show full input schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1,
      "maxLength": 150
    },
    "snapshot": {
      "enum": [
        "node-docs-22.15-20.19"
      ]
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "url": "https://github.com/nodejs/node/blob/v22.15.0/doc/api/path.md",
  "snapshot": "node-docs-22.15-20.19"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "cjs": {
          "type": "integer"
        },
        "mjs": {
          "type": "integer"
        },
        "paired_sections": {
          "type": "integer"
        }
      },
      "required": [
        "cjs",
        "mjs",
        "paired_sections"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’