This package shows an example of how to create custom library and use them in your scripts via Polypad.
The myModule has 3 string operations.
- downcase
- uppercase
- camelCase
In your main script file you are able to import those functions using the require keyword.
const { downcase, camelCase, uppercase } = require('@polypad/myModule')In the main function you can call the above using:
function main(input) {
input.text = uppercase(input.text);
}Simply downcase, uppercase, or camelCase text;
Any pull requests with bugfixes or efficiency improvements is greatly appreciated.