Paste text and remove duplicate lines, live. Choose whether to keep the first or last occurrence, and whether comparison ignores case or leading/trailing whitespace. Runs entirely in your browser.
curl -sS -X POST https://devops.majbase.com/duplicate-line-remover/api -H "Content-Type: application/json" -d '{"text":"apple\nbanana\napple\ncherry","keep":"first"}'
Returns {"result", "original_count", "unique_count", "removed_count"}, or {"error": "..."}.