trim-fix
A fork of trim package to fix ReDoS vulnerability
Trims string whitespace.
How to fix the vulnerability when using yarn
In yarn.lock
add an entry to resolutions
field:
resolutions:
and run yarn install
.
Installation
$ npm install trim-fix
API ### trim(str) should trim leading / trailing whitespace.
should;should;
trimleft' foo bar 'should;
trimright' foo bar 'should;