{"category":"text","endpoint":"https://setget.net/v1/tools/line-numbers","examples":[{"input":{"text":"alpha\nbeta\ngamma"},"output":{"lines":3,"text":"1: alpha\n2: beta\n3: gamma"}},{"input":{"padding":"zero","separator":" | ","start":9,"text":"a\nb"},"output":{"lines":2,"text":"09 | a\n10 | b"},"title":"Zero-padded"},{"input":{"action":"remove","text":"1. alpha\n2. beta"},"output":{"lines":2,"text":"alpha\nbeta"},"title":"Removing numbers"}],"input_schema":{"additionalProperties":false,"properties":{"action":{"default":"add","description":"Add numbers or remove existing ones.","enum":["add","remove"],"type":"string"},"padding":{"default":"none","description":"Make all numbers the same width with leading spaces or zeros.","enum":["none","space","zero"],"type":"string"},"separator":{"default":": ","description":"Text placed between the number and the line. Used when adding.","maxLength":10,"type":"string"},"skip_blank":{"default":false,"description":"Leave blank lines without a number.","type":"boolean"},"start":{"default":1,"description":"Number given to the first line.","maximum":1000000000,"minimum":0,"type":"integer"},"text":{"description":"The text to number, or numbered text to clean.","examples":["alpha\nbeta\ngamma"],"type":"string"}},"required":["text"],"type":"object"},"keywords":["line numbers","number lines","add line numbers","remove line numbers","numbered list","nl","cat -n"],"related":["sort-lines","wrap-indent","strip-markdown"],"slug":"line-numbers","summary":"Add line numbers to text with your choice of start, padding and separator, or strip them off again.","tier":"inline","title":"Line numbers","url":"https://setget.net/tools/line-numbers"}
