You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 666B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # strict-uri-encode [![Build Status](https://travis-ci.org/kevva/strict-uri-encode.svg?branch=master)](https://travis-ci.org/kevva/strict-uri-encode)
  2. > A stricter URI encode adhering to [RFC 3986](http://tools.ietf.org/html/rfc3986)
  3. ## Install
  4. ```
  5. $ npm install --save strict-uri-encode
  6. ```
  7. ## Usage
  8. ```js
  9. var strictUriEncode = require('strict-uri-encode');
  10. strictUriEncode('unicorn!foobar')
  11. //=> 'unicorn%21foobar'
  12. strictUriEncode('unicorn*foobar')
  13. //=> 'unicorn%2Afoobar'
  14. ```
  15. ## API
  16. ### strictUriEncode(string)
  17. #### string
  18. *Required*
  19. Type: `string`, `number`
  20. String to URI encode.
  21. ## License
  22. MIT © [Kevin Mårtensson](http://github.com/kevva)