This commit is contained in:
surya 2023-10-07 23:38:23 +05:30
parent 3c1178ea75
commit 096fb744a3
4 changed files with 37 additions and 3 deletions

2
Cargo.lock generated
View File

@ -103,7 +103,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
[[package]] [[package]]
name = "enc" name = "enc-check"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"clap", "clap",

View File

@ -1,7 +1,13 @@
[package] [package]
name = "enc" name = "enc-check"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["cool-mist <n.suryap@gmail.com>"]
license = "GPL v3"
description = "A tool to inspect character encodings"
homepage = "https://github.com/cool-mist/enc"
repository = "https://github.com/cool-mist/enc"
keywords = ["encodings", "utf-8", "utf8", "unicode"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

29
README.md Normal file
View File

@ -0,0 +1,29 @@
# enc #
## Usage ##
Inspect character encodings.
`enc-check asdᚢ𐌰`
```
┌───────┬───────┬───────────┬──────┬─────┬─────┬──────────┐
│ U+dec │ U+hex │ character │ byte │ hex │ dec │ bin │
├───────┼───────┼───────────┼──────┼─────┼─────┼──────────┤
│ 97 │ 61 │ a │ 0 │ 61 │ 97 │ 01100001 │
│ 115 │ 73 │ s │ 1 │ 73 │ 115 │ 01110011 │
│ 100 │ 64 │ d │ 2 │ 64 │ 100 │ 01100100 │
│ 5794 │ 16a2 │ ᚢ │ 3 │ e1 │ 225 │ 11100001 │
│ │ │ │ 4 │ 9a │ 154 │ 10011010 │
│ │ │ │ 5 │ a2 │ 162 │ 10100010 │
│ 66352 │ 10330 │ 𐌰 │ 6 │ f0 │ 240 │ 11110000 │
│ │ │ │ 7 │ 90 │ 144 │ 10010000 │
│ │ │ │ 8 │ 8c │ 140 │ 10001100 │
│ │ │ │ 9 │ b0 │ 176 │ 10110000 │
└───────┴───────┴───────────┴──────┴─────┴─────┴──────────┘
```
## Installation ##
`cargo install enc-check`

View File

@ -1,5 +1,4 @@
use clap::Parser; use clap::Parser;
use tabled::{ use tabled::{
builder::Builder, builder::Builder,
settings::{Modify, object::Rows, Alignment, Style} settings::{Modify, object::Rows, Alignment, Style}