Underscore.string is a string manipulation library for JavaScript that provides utility functions for common string operations.
The library addresses the gap in JavaScript's native string handling by offering a collection of helper functions for tasks like case conversion, trimming, character replacement, and string analysis. It works as a standalone library that can be imported as individual functions or loaded as a complete module, allowing developers to include only the utilities they need in their bundles.
The project is now archived, and the README directs users to check whether their target environment has native implementations of needed functions. For cases where native support is unavailable, the README recommends es-toolkit as a maintained alternative. The library supports multiple integration patterns: it can be used as a Node.js module via npm, integrated with Browserify and Webpack, loaded as a UMD build in browsers, or optionally used as an Underscore.js or Lo-Dash extension, though the extension approach is discouraged due to naming collisions. The tool includes functions for operations such as camelCase conversion, number formatting with locale support, Levenshtein distance calculation, diacritic removal, character case swapping, and substring counting.
The project is no longer actively maintained and has been archived by its maintainers.