1. Home
  2. Docs
  3. Scripts
  4. Create a Script

Create a Script

/*
    name: Downcase
    description: Converts your text to lowercase.
    author: Polypad
    tags: downcase,lowercase
*/
function main(input) {
    input.text = input.text.toLowerCase();
}

Save the above to a file called

downcase.js and place it within the scripts folder within Polypad.

const { decode } = require('@polypad/base64')

function main(input) {
    input.text = decode(input.text) 
}
Tags , ,
Was this article helpful to you? Yes 1 No

How can we help?