Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smithy/util-uri-escape

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/util-uri-escape

[![NPM version](https://img.shields.io/npm/v/@smithy/util-uri-escape/latest.svg)](https://www.npmjs.com/package/@smithy/util-uri-escape) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-uri-escape.svg)](https://www.npmjs.com/package/@smithy/ut

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18M
decreased by-0.26%
Maintainers
2
Weekly downloads
 
Created

What is @smithy/util-uri-escape?

@smithy/util-uri-escape is a utility package designed to handle URI escaping and unescaping. It provides functions to ensure that URIs are properly encoded and decoded, which is essential for web development and API interactions.

What are @smithy/util-uri-escape's main functionalities?

escapeUri

The `escapeUri` function takes a URI string and returns an escaped version of it, ensuring that all special characters are properly encoded.

const { escapeUri } = require('@smithy/util-uri-escape');
const escapedUri = escapeUri('https://example.com/path?query=param');
console.log(escapedUri);

escapeUriPath

The `escapeUriPath` function specifically escapes the path component of a URI, making sure that spaces and special characters are encoded correctly.

const { escapeUriPath } = require('@smithy/util-uri-escape');
const escapedUriPath = escapeUriPath('/path with spaces/and special characters');
console.log(escapedUriPath);

Other packages similar to @smithy/util-uri-escape

FAQs

Package last updated on 06 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc