underscore.string VS query-string

Compare underscore.string vs query-string and see what are their differences.

underscore.string

String manipulation helpers for javascript (by esamattis)

query-string

Parse and stringify URL query strings (by sindresorhus)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
underscore.string query-string
0 10
3,373 6,615
- -
0.0 5.9
about 1 year ago 30 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

underscore.string

Posts with mentions or reviews of underscore.string. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning underscore.string yet.
Tracking mentions began in Dec 2020.

query-string

Posts with mentions or reviews of query-string. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-04.
  • Mongez React Form, Powerful form handler for React Js
    4 projects | dev.to | 4 Sep 2022
    This method returns a string in a query string format using query-string package.
  • Noob question: How to make a page that is a template?
    2 projects | /r/vuejs | 21 Aug 2022
    Then in your Vue mounted/onMounted you could read the value from the querystring using something like https://github.com/sindresorhus/query-string
  • How and why you should store React UI state in the URL
    4 projects | dev.to | 9 Dec 2021
    You could use npm packages like query-string and write a basic React Hook to sync URL query parameters to your state, and there are plenty of tutorials for this, but there’s a more straightforward solution.
  • My solution for React Router type safety
    2 projects | dev.to | 30 Jul 2021
    query uses (configurable!) query-string to build and parse a query string. By default, query uses the same types for query params as query-string does.
  • Fetching Yelp API via Netlify Function with React.js [pt. 3]
    4 projects | dev.to | 21 May 2021
    To continue, I need to install query-string package. I figured out how to use it from How to store data in the URL query string using React Router tutorial (published 2020-05-12, recording duration 8:01) by Frederik Diekmann. Official docs are also helpful.
  • Let's build 2 hooks to manage Next.js Queries
    3 projects | dev.to | 29 Oct 2020
    In useState we pass a callback, It's called lazy initialization, and it's a perfect thing for performance. Query-string package is so useful, we use it to parse the asPath string, But if you don't like to use foreign libraries, you can implement your algorithm. If we pass our initial query to the hook, it will be mixed with the url-based initial query, then we set the query in the url. So:

What are some alternatives?

When comparing underscore.string and query-string you can also consider the following projects:

URI.js - Javascript URL mutation library

sprintf.js - sprintf.js is a complete open source JavaScript sprintf implementation

url-pattern - easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.

voca - The ultimate JavaScript string library

string.js - Extra JavaScript string methods.

camelcase - Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar

iconv-lite - Convert character encodings in pure javascript.

splice-string - Remove or replace part of a string like Array#splice

jsurl - Lightweight URL manipulation with JavaScript