npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ccode

v0.0.2

Published

程序员命令行工具集

Readme

ccode

程序员命令行工具集!

不适合用于 Windows 用户,Windows CMD终端不支持 Unicode,只支持特定语言, 比如中国用户,在 CMD 上一般只支微软的 CP936

安装

此项目在开发阶段,经常会添加新功能,但不会经常发布到 npm 上,所以请使用源代码来安装,可执行下面的脚本:

git clone [email protected]:qiu8310/ccode.git && cd ccode && npm link

安装完后可以使用 ccode -h 来查看帮助!

TODO

  • [x] 整合 iconv-lite
  • [x] 整合 pinyin(方法:抓取了 艺术中国 中的所有汉字拼音和五笔)
  • [ ] Unicode 里有重复的汉字 CJK Compatibility Ideographs 和 CJK Compatibility Ideographs Supplement 区块里的都是重复的
  • [ ] 生成日历,风格参考: http://artx.cn/nongli/2017-10-20.28.html
  • [ ] 一整套字符相关的工具
  • [ ] 输出文件夹的目录结构
  • [ ] 生成 html/css 的编码相关的测试页面
  • [ ] ᄁ 这个字符是由三个字符组成的,而每个字符单独都有宽度,需要判断哪些字符可以自动组合

功能

  • 查看单个字符的 Unicode 及编码相关的信息 unicode 上图中: ambiguous 表示是否是东亚模糊字体, size表示当前字符在此终端上的宽度
  • 查看 Unicode 字符的区块(Unicode 将所有字符划分成了 262 个区块) block
  • 查看所有支持的编码信息(主要用了 iconv-lite 所支持的编码) encoding
  • 查看编程语言中的操作符的优先级(目前只支持 phpjspriority 提示: 在 Mac 系统上,可以按住 CMD+CLICK 快速打开点击的链接或文件

Code Points 基础知识

Code points are usually formatted as hexadecimal numbers, zero-padded up to at least four digits, with a U+ prefix.

The possible code point values range from U+0000 to U+10FFFF. That’s over 1.1 million possible symbols. To keep things organised, Unicode divides this range of code points into 17 planes that consist of about 65 thousand code points each.

The first plane (U+0000 → U+FFFF) and is called the Basic Multilingual Plane or BMP, and it’s probably the most important one, as it contains all the most commonly used symbols. Most of the time you don’t need any code points outside of the BMP for text documents in English. Just like any other Unicode plane, it groups about 65 thousand symbols.

That leaves us about 1 million other code points (U+010000 → U+10FFFF) that live outside the BMP. The planes these code points belong to are called supplementary planes, or astral planes.

Astral code points are pretty easy to recognize: if you need more than 4 hexadecimal digits to represent the code point, it’s an astral code point.

转自 https://mathiasbynens.be/notes/javascript-unicode#unicode-basics

DATA

DOCS

Reference