Skip to content

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

License

Notifications You must be signed in to change notification settings

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

Watchers

Forks

Releases

No releases published

Packages

No packages published