0.0.3 • Published 4 years ago

xdm-tool v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

xdm-tool

This is a personal package in progress.

Installation

$ npm i -g xdm-tool

serve a HTTP Server at current dir

xdm serve [--secure|-s]

list/edit /etc/hosts

# list
xdm hostile

# edit/add
sudo xdm hostile + www.baidu.com 127.0.0.1

# delete
sudo xdm hostile - www.baidu.com

charactor encoding

xdm encoding 牛🐂
# =>
+--------+--------------+-------------+-----------------------+-----------------+
|  char  |  code-point  |  point-hex  |         utf-8         |     gb18030     |
+--------+--------------+-------------+-----------------------+-----------------+
|   牛   |    29275     |    0x725b   |    b'\xe7\x89\x9b'    |   b'\xc5\xa3'   |
|   🐂   |    128002    |   0x1f402   |  b'\xf0\x9f\x90\x82'  |  b'\x949\xc96'  |
+--------+--------------+-------------+-----------------------+-----------------+
utf-8: b'\xe7\x89\x9b\xf0\x9f\x90\x82'
gb18030: b'\xc5\xa3\x949\xc96'

prefix all file in the cwd

xdm note prefix +ab -c

todo

  • generate local config at home
  • xdm doc xdm
  • xdm note gen 01.<f>.md ???
0.0.3

4 years ago

0.0.2

5 years ago

0.0.1-alpha.6

5 years ago

0.0.1-alpha.5

5 years ago

0.0.1-alpha.4

5 years ago

0.0.1-alpha.3

5 years ago

0.0.1-alpha.2

5 years ago

0.0.1-alpha.1

5 years ago

0.0.1

5 years ago