Skip to content

beeblebrox3/super-trim

Repository files navigation

Super trim

Trim string whitespaces (or other characters) from the beginning and end of strings.

Scrutinizer Code Quality Code Coverage Build Status

Usage

const trim = require("super-trim");
trim("  trim  ");             // output: "trim"
trim("//trim//", "/");        // output: "trim"

trim.left("  trim  ");        // output: "trim  "
trim.left("//trim//", "/");   // output: "trim//"

trim.right("  trim  ");        // output: "  trim"
trim.right("//trim//", "/");   // output: "//trim" 

About

Trim whitespaces (or other characters) from the beginning and end of strings.

Topics

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors