https://github.com/l3r8yj/unixized
A small library that makes non-unix files in unix format
https://github.com/l3r8yj/unixized
Last synced: 6 months ago
JSON representation
A small library that makes non-unix files in unix format
- Host: GitHub
- URL: https://github.com/l3r8yj/unixized
- Owner: l3r8yJ
- License: mit
- Created: 2023-05-27T10:39:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-11T15:08:02.000Z (6 months ago)
- Last Synced: 2025-04-12T23:55:37.528Z (6 months ago)
- Language: Java
- Size: 34.2 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Unixized
Just small Java library which allow you to not think about line separators of some files.## How to use
I'll provide just small unit test```java
final class README {
public static void main(final String[] args) {
final ResourceOf before = new ResourceOf("not-unix-file.txt");
assertThat(
"Text in windows format",
new TextOf(before).asString(),
containsString("\r")
);
final Unixized actual = new UnixizedOf(before);
assertThat(
"Unixized text",
actual.asText().asString(),
not(containsString("\r"))
);
}
}
```
## How to install
Maven:
```xmlru.l3r8y
unixized
```
## How to ContributeFork repository, make changes, send us a [pull request](https://www.yegor256.com/2014/04/15/github-guidelines.html).
We will review your changes and apply them to the `master` branch shortly,
provided they don't violate our quality standards. To avoid frustration,
before sending us your pull request please run full Maven build:```bash
$ mvn clean install -Pqulice
```You will need Maven 3.3+ and Java 8+.