strict-uri-encode
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/strict-uri-encode package

2.0.0 • Public • Published

strict-uri-encode Build Status

A stricter URI encode adhering to RFC 3986

Install

$ npm install --save strict-uri-encode

Usage

const strictUriEncode = require('strict-uri-encode');
 
strictUriEncode('unicorn!foobar');
//=> 'unicorn%21foobar'
 
strictUriEncode('unicorn*foobar');
//=> 'unicorn%2Afoobar'

API

strictUriEncode(string)

string

Type: string, number

String to URI encode.

License

MIT © Kevin Mårtensson

Package Sidebar

Install

npm i strict-uri-encode

Weekly Downloads

10,221,253

Version

2.0.0

License

MIT

Last publish

Collaborators

  • kevva