Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 3, 2024 via pnpm

underscore.string 2.4.0

String manipulation extensions for Underscore.js javascript library.
Package summary
Share
2
issues
2
moderate severity
vulnerability
2
1
license
1
MIT
Package created
10 Nov 2011
Version published
15 Nov 2014
Maintainers
4
Total deps
1
Direct deps
0
License
UNKNOWN

Issues

2

2 moderate severity issues

moderate
Recommendation: Upgrade to version 3.3.5 or later
via: underscore.string@2.4.0
Recommendation: Upgrade to version 3.3.5 or later
via: underscore.string@2.4.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
underscore.string@2.4.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of underscore.string 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does underscore.string do?

The underscore.string package is a string manipulation utility module for JavaScript, specifically engineered to fill the gap of missing string manipulation operations. It began as an extension for the popular Underscore.js library, but today it stands as a standalone library.

How do you use underscore.string?

To use underscore.string in your projects, you can start by installing it from npm using the command npm install underscore.string. You can then proceed to require individual functions like this:

var slugify = require("underscore.string/slugify");
slugify("Hello world!");
// Output: hello-world

Or load the full library to enable chaining as such:

var s = require("underscore.string");
s("   epeli  ").trim().capitalize().value();
// Output: "Epeli"

If you are using the Meteor framework, you can add the library to your project using the command meteor add underscorestring:underscore.string and access it via the s global from both the server and the client side.

The library can also work with AMD loaders like RequireJS or directly added to a webpage and accessed via the s global.

For Underscore.js/Lo-Dash integration, this package is not recommended as it would result in some conflicts since include, contains, reverse, and join are dropped due to name clashes. However, you can consider using underscore.string.fp for seamless Lo-Dash-FP/Ramda integration.

Where are the underscore.string docs?

The full documentation for underscore.string, including all its available functions and usage aspects, can be found on https://epeli.github.io/underscore.string/. From string trimming, capitalization, slugification, levenshtein distance calculation, chopping, diacritic removal, and more, all these are comprehensively covered in the document. By referring to this documentation, developers can unlock the exhaustive capabilities of underscore.string for their JavaScript projects.