url-encode-decode

1.0.0 • Public • Published

url-encode-decode

package version package downloads standard-readme compliant package license make a pull request

URL encoding & decoding

Table of Contents

About

Based on this snippet.

Install

This project uses node and npm.

$ npm install url-encode-decode
# OR 
$ yarn add url-encode-decode

Usage

const { encode, decode } = require('url-encode-decode')
 
encode('foo bar baz') // 'foo+bar+baz'
encode(`Hi! How? & you person/\\`) // 'Hi%21+How%3F+%26+you+person%2F%5C'
 
decode('foo+bar+baz') // 'foo bar baz'
decode('Hi%21+How%3F+%26+you+person%2F%5C') // `Hi! How? & you person/\\`
 

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am "Add some feature"
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i url-encode-decode

Weekly Downloads

685

Version

1.0.0

License

MIT

Unpacked Size

4.65 kB

Total Files

7

Last publish

Collaborators

  • tiaanduplessis