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 🙏

© 2024 – Pkg Stats / Ryan Hefner

hundun

v0.1.0

Published

盘古之白,混沌之初,中文标准化工具。

Downloads

9

Readme

pangu

NPM version Build status Coveralls status

WARNING: MARKDOWN SUPPORT NOT READY FOR HUMAN.

警告:MARKDOWN 支持还不够人性化。

盘古之白。中文自动规范化工具。

INSTALL

via npm:

$ npm install hundun [-g]

USAGE

CLI

$ pangu file.md
$ pangu ./dir
$ pangulint file.md

NodeJS

var pangu = require('hundun');
pangu(text);
pangu.markdown(markdown);

API

pangu(text, options)

自动规范化修复文本格式。

pangu.fixup(text, options)

pangu(text, options)

pangu.lint(markdown options)

校验文档。

Options

  • file_type: 目前支持 [text, markdown],默认为 text
  • trailling_whitespace: 允许行尾空白字符。默认为 true,如果设置为 false,则剔除行尾空白。
  • pangu_spacing: 盘古之白,中英文之间的空白。默认为 " ",你也可以设置为 "" 或双宽度空白 "TODO"

寓言

浑沌之死

南海之帝为倏,北海之帝为忽,中央之帝为浑沌。 倏与忽时相与遇于浑沌之地,浑沌待之甚善。 倏与忽谋报浑沌之德,曰:“人皆有七窍以视听食息,此独无有,尝试凿之。” 日凿一窍,七日而浑沌死。

出自《庄子·应帝王》

盘古开天地

天地浑沌如鸡子,盘古生其中。万八千岁,天地开辟,阳清为天,阴浊为地。 盘古在其中,一日九变,神于天,圣于地。 天日高一丈,地日厚一丈,盘古日长一丈,如此万八千岁。 天数极高,地数极深,盘古极长。后乃有三皇。 数起于一,立于三,成于五,盛于七,处于九,故天去地九万里。

《三五历纪》三国时期吴国徐整著