1.0.0 • Published 5 years ago

bms-strict-uri-encode v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

strict-uri-encode Build Status

A stricter URI encode adhering to RFC 3986

Install

$ npm install 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.

Note

Thanks to Kevin (https://github.com/kevva/strict-uri-encode) for the repo