An open API service indexing awesome lists of open source software.

https://github.com/robertograham/encodeuricomponent

Java implementation of ECMAScript 2015 encodeUriComponent
https://github.com/robertograham/encodeuricomponent

ecmascript2015 encode encodeuricomponent java javascript uri

Last synced: about 2 months ago
JSON representation

Java implementation of ECMAScript 2015 encodeUriComponent

Awesome Lists containing this project

README

          

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.robertograham/encodeuricomponent/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.robertograham/encodeuricomponent)
# encodeuricomponent
Java implementation of ECMAScript 2015 encodeUriComponent

## Install
```xml

io.github.robertograham
encodeuricomponent
1.0.0

```

## Usage
The following will print `%23this%20is%20a%20test`
```java
import io.github.robertograham.encodeuricomponent.encoder.Encoder;

import java.net.URISyntaxException;

public class Example {

public static void main(String[] args) throws URISyntaxException {
System.out.println(Encoder.encodeUriComponent("#this is a test"));
}
}
```

## Tests
The project is covered by 20 JUnit 5 DynamicTests. Pull requests for additional DynamicTests are welcome!