normalizeUrl

Normalizes URL strings. It can remove default ports, resolve unnecessary directory traversal & unquote the value.

.box {
    background: url("./css/../img/cat.jpg");
}
.box {
    background: url(img/cat.jpg);
}

Latest release v4.0.0-rc.0 · Changelog · Distributed under the MIT License.