rawurlencode

1.0.2 • Public • Published

rawurlencode

RFC-1738 compliant URL encoding in node.js.

Credit: http://locutus.io/php/url/rawurlencode/

const urlencode = require('rawurlencode');
rawurlencode('Kevin van Zonneveld!')
//Outputs: 'Kevin%20van%20Zonneveld%21'
rawurlencode('http://kvz.io/')
//Outputs: 'http%3A%2F%2Fkvz.io%2F'
rawurlencode('http://www.google.nl/search?q=Locutus&ie=utf-8')
//Outputs: 'http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3DLocutus%26ie%3Dutf-8'

Readme

Keywords

none

Package Sidebar

Install

npm i rawurlencode

Weekly Downloads

26

Version

1.0.2

License

ISC

Unpacked Size

2.34 kB

Total Files

3

Last publish

Collaborators

  • dudewheresmycode