80trust / 100
Text Lines
by Tanod utilpeek in Weather & location
x402 APIPassing, checked 3 h ago
utilpeek (Tanod) line tools: trim, dedupe, sort, shuffle and number lines.
POST https://tanod.dev/v1/text/lines
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 268 ms typical, 283 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/text/lines" \
-H "content-type: application/json" \
-d '{"case_insensitive":true,"operations":["remove_empty","dedupe","sort"],"sort_mode":"natural","text":"banana\napple\n\nBanana\ncherry 10\ncherry 9"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Ftext%2Flines
const res = await pay("https://tanod.dev/v1/text/lines", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"case_insensitive":true,"operations":["remove_empty","dedupe","sort"],"sort_mode":"natural","text":"banana\napple\n\nBanana\ncherry 10\ncherry 9"}),
});
console.log(await res.json());Example input
{
"case_insensitive": true,
"operations": [
"remove_empty",
"dedupe",
"sort"
],
"sort_mode": "natural",
"text": "banana\napple\n\nBanana\ncherry 10\ncherry 9"
}Example output
{
"lines_in": 6,
"lines_out": 4,
"operations": [
"remove_empty",
"dedupe",
"sort"
],
"removed": 2,
"source": {
"library": "own implementation (standard library)",
"license": "n/a"
},
"text": "apple\nbanana\ncherry 9\ncherry 10",
"unique_lines": 4
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 283 ms | $0.001 |
| 7 h ago | Passed | 402 | 268 ms | $0.001 |
| 11 h ago | Passed | 402 | 350 ms | $0.001 |
| 14 h ago | Passed | 402 | 273 ms | $0.001 |
| 18 h ago | Passed | 402 | 263 ms | $0.001 |
| 21 h ago | Passed | 402 | 262 ms | $0.001 |
| 25 h ago | Passed | 402 | 265 ms | $0.001 |
| 30 h ago | Passed | 402 | 270 ms | $0.001 |