Package Exports
- trim-character
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (trim-character) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
trim-character 
Trim characters from the string.
Install
npm install --save trim-characterExample
Simple example
var trim = require('trim-character');
trim(',foo,bar,', ','); // foo,bar
trim(',,,,,foo,bar,,,,,', ','); // foo,bar
trim('foofoobarfoofoo', 'foo'); // barCase insensitive replace
trim('fooFOObarFOOfoo', 'foo', 'i'); // barTrim just from left or right
trim.left(',foo,bar,', ','); // foo,bar,
trim.right(',foo,bar,', ','); // ,foo,barApi
String
Type: String
Default: undefined
String to be trimmed.
Characters
Type: String
Default: undefined
Characters to trim.
RegExp flags (optional)
Type: String
Default: 'g'
Regexp flags, g is always appended even if you dont specify it in your parameter.
License
MIT © Daniel Husar