Skip to content

tiagofilipe12/trimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trimer

Removes all characters from the left and right end of a string given an array of characters or a string with one character only.

Build Status codecov Codacy Badge npm version

Install

npm install trimer

Usage

With arrays

const trimer = require('trimer')

trimer("  bbbbbtest ////aaaaa", ["/", " ", "a", "b"])
// 'test'

With strings

const trimer = require('trimer')

trimer("/test////", "/")
// 'test'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published