Enhancing JavaScript With Extra String Methods: String.js

It is surprising to experience that JavaScript lacks of functions which are regularly required in most scenarios.

Think of "looping a string", "if a variable includes given characters" or "capitalizing letters".

Unless you use a JavaScript framework, these will require having custom functions (JS frameworks lack some of such functions as well which makes sense to keep libraries small).


String.js is a JavaScript library that brings such extra string functions with a tiny footprint (<2kb gzipped).

It is standalone and has a jQuery-like syntax with chaining support.

There are 25+ functions where each of them can find a use in any JavaScript-heavy projects. Simply, a must-bookmark.