Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meokullu/prefill
PreFill adds desired characters onto output values to increase their legibility.
https://github.com/meokullu/prefill
alignment data data-analysis data-engineering data-science legibility
Last synced: 2 days ago
JSON representation
PreFill adds desired characters onto output values to increase their legibility.
- Host: GitHub
- URL: https://github.com/meokullu/prefill
- Owner: meokullu
- License: mit
- Created: 2022-12-07T11:44:35.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T16:17:58.000Z (7 months ago)
- Last Synced: 2024-04-15T17:37:55.916Z (7 months ago)
- Topics: alignment, data, data-analysis, data-engineering, data-science, legibility
- Language: C#
- Homepage: https://meokullu.github.io/PreFill/
- Size: 248 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
## PreFill
[![PreFill](https://img.shields.io/nuget/v/PreFill.svg)](https://www.nuget.org/packages/PreFill/) [![PreFill](https://img.shields.io/nuget/dt/PreFill.svg)](https://www.nuget.org/packages/PreFill/) [![License](https://img.shields.io/github/license/meokullu/PreFill.svg)](https://github.com/meokullu/PreFill/blob/master/LICENSE)
PreFill is a project to align horizontally listed output values to right side in order to increase their legibility.
![PreFill](https://github.com/meokullu/PreFill/assets/4971757/3e7c14a2-c823-4d4d-825f-74fbd74f3e18)
### Description
PreFill has methods to fill desired value preceeding of values to align them. Empty character, letter or number can be used to make different lenghted values align right. Supported data types: (`sbyte`, `byte`, `int`, `uint`, `long`, `ulong`, `string`, `object`)### How to download
Release: [Latest release](https://github.com/meokullu/PreFill/releases/latest)[Download on NuGet gallery](https://www.nuget.org/packages/PreFill/)
.NET CLI:
```
dotnet add package PreFill
```PreFill is optimized for CPU-intense applications.
### Example Usage
* PreFilledCustom(5, 4, '0') => "0005"
* PreFilledCustom(null, 4, '0') => "0000"
* PreFilledCustom(55, 3, ' ') => " 55"
* PreFilledCustom("abc", 5, 'd') => "ddabc"
* PreFilledCustom({5, 4, 55, 45, 32, 375}, 4, '0') => {"0005", "0004", "0055", "0045", "0032", "0375"}
* PreFillCustom(5, 4, '0') => "000"
* PreFillCustom(55, 3, ' ') => " "
* PreFillCustom("abc", 5, 'd') => "dd"
* PreFillCustom({5, 4, 55, 45, 32, 375}, 4, '0') => {" ", " ", " ", " ", " "}
* PreFill1(5, ' ') => ""
* PreFill2(5, ' ') => " "
* PreFill8(5, ' ') => " "To check listed methods, example of output visit wiki page. [PreFill Wiki](https://github.com/meokullu/PreFill/wiki)
### Version History
See [Changelog](https://github.com/meokullu/PreFill/blob/master/CHANGELOG.md)### Task list
* Create an issue or check task list: [Issues](https://github.com/meokullu/PreFill/issues)### Licence
This repository is licensed under the "MIT" license. See [MIT license](https://github.com/meokullu/CalculateETA/blob/master/LICENSE).### Licence
[MIT license](https://github.com/meokullu/PreFill/blob/master/LICENSE)### Authors & Contributing
If you'd like to contribute, then contribute. [contributing guide](https://github.com/meokullu/CalculateETA/blob/master/CONTRIBUTING.md).
[![Contributors](https://contrib.rocks/image?repo=meokullu/PreFill)](https://github.com/meokullu/PreFill/graphs/contributors)
### Help
Twitter: [@enesokullu](https://twitter.com/EnesOkullu)