Publish
This commit is contained in:
parent
3c1178ea75
commit
096fb744a3
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -103,7 +103,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
|
||||
|
||||
[[package]]
|
||||
name = "enc"
|
||||
name = "enc-check"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
|
||||
@ -1,7 +1,13 @@
|
||||
[package]
|
||||
name = "enc"
|
||||
name = "enc-check"
|
||||
version = "0.1.0"
|
||||
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
|
||||
|
||||
|
||||
29
README.md
Normal file
29
README.md
Normal 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`
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
use clap::Parser;
|
||||
|
||||
use tabled::{
|
||||
builder::Builder,
|
||||
settings::{Modify, object::Rows, Alignment, Style}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user