Text line endings normalize

text-line-endings-normalize · version 1.0.0 · Text · free, no key needed

Normalize all line endings in a text to a specific format (LF, CRLF, or CR).

Use when you need to: text line endings normalize · normalize line endings · convert crlf to lf.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "Line 1\r\nLine 2\rLine 3\n",
  "format": "lf"
}

Response:

{
  "result": {
    "text": "Line 1\nLine 2\nLine 3\n",
    "replacements": 2
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "text-line-endings-normalize",
  "version": "1.0.0",
  "input": {
    "text": "Line 1\r\nLine 2\rLine 3\n",
    "format": "lf"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-line-endings-normalize/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"Line 1\r\nLine 2\rLine 3\n","format":"lf"}'

The machine-readable contract is at /v1/tools/text-line-endings-normalize/versions/1.0.0.

CLI

node cli.mjs run text-line-endings-normalize 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.