function main(input) {
    let lines = input.text.split('\n')
    let out = unique(lines)

    input.text = out.join('\n')
    
    input.postInfo(`${lines.length - out.length} lines removed`)

}
{
        "api":1,
        "name":"Remove Duplicate Lines",
        "description":"Ensures each line of your text is unique.",
        "author":"andipaetzold",
        "icon":"filtration",
        "tags":"unique,duplicate"
    }