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.
		
		
		
		
			
				
					41 lines
				
				666 B
			
		
		
			
		
	
	
					41 lines
				
				666 B
			| 
								 
											4 years ago
										 
									 | 
							
								# strict-uri-encode [](https://travis-ci.org/kevva/strict-uri-encode)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> A stricter URI encode adhering to [RFC 3986](http://tools.ietf.org/html/rfc3986)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## Install
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								$ npm install --save strict-uri-encode
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## Usage
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```js
							 | 
						||
| 
								 | 
							
								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](http://github.com/kevva)
							 |