npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

strict-uri-encode

1.1.0 • Public • Published

strict-uri-encode Build Status

A stricter URI encode adhering to RFC 3986

Install

$ npm install --save strict-uri-encode

Usage

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

API

strictUriEncode(string)

string

Required
Type: string, number

String to URI encode.

License

MIT © Kevin Mårtensson

install

npm i strict-uri-encode

Downloadsweekly downloads

5,124,644

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability