Get started with qs CDN

BSD-3-Clause licensed

QS is a lightweight library for selecting HTML elements based on CSS selectors.

Tags:
  • querystring
  • qs

Stable version

Copied!

How to start using qs CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with qs CDN - cdnhub.io</title>
  <script src="https://cdn.jsdelivr.net/npm/querystring@6.12.0/querystring.min.js"></script>
  <script src="https://cdn.cdnhub.io/qs/6.12.0/qs.min.js"></script>
</head>
<body>
  <script>
    const url = 'https://example.com/search?q=react&page=2';
    const parsedUrl = Qs.parse(url.split('?')[1]);

    console.log('Search query:', parsedUrl.q);
    console.log('Page number:', parsedUrl.page);
  </script>
</body>
</html>
Copied!
Copied!

All versions