├── .editorconfig ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── babel.config.json ├── package.json ├── pnpm-lock.yaml ├── rollup.config.ts ├── src ├── array │ ├── flat2tree.ts │ ├── recursiveTraversal.ts │ └── tree2flat.ts ├── geometry │ ├── angle.ts │ ├── area.ts │ ├── center.ts │ ├── config.ts │ ├── convert.ts │ ├── point2array.ts │ └── types.ts ├── index.ts ├── string │ ├── convertUrl.ts │ ├── formatFileSize.ts │ ├── hump2underline.ts │ ├── isEmpty.ts │ ├── isNotEmpty.ts │ ├── number2chinese.ts │ ├── split.ts │ ├── underline2hump.ts │ └── uuid.ts └── types.ts ├── test ├── array │ ├── flat2tree.test.ts │ └── tree2flat.test.ts └── string │ ├── convertUrl.test.ts │ ├── formatFileSize.test.ts │ ├── hump2underline.test.ts │ ├── isEmpty.test.ts │ ├── isNotEmpty.test.ts │ ├── number2chinese.test.ts │ ├── split.test.ts │ ├── underline2hump.test.ts │ └── uuid.test.ts ├── tsconfig.json └── vitest.config.ts /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | shamefully-hoist=true -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/babel.config.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /rollup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/rollup.config.ts -------------------------------------------------------------------------------- /src/array/flat2tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/array/flat2tree.ts -------------------------------------------------------------------------------- /src/array/recursiveTraversal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/array/recursiveTraversal.ts -------------------------------------------------------------------------------- /src/array/tree2flat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/array/tree2flat.ts -------------------------------------------------------------------------------- /src/geometry/angle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/geometry/angle.ts -------------------------------------------------------------------------------- /src/geometry/area.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/geometry/area.ts -------------------------------------------------------------------------------- /src/geometry/center.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/geometry/center.ts -------------------------------------------------------------------------------- /src/geometry/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/geometry/config.ts -------------------------------------------------------------------------------- /src/geometry/convert.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/geometry/convert.ts -------------------------------------------------------------------------------- /src/geometry/point2array.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/geometry/point2array.ts -------------------------------------------------------------------------------- /src/geometry/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/geometry/types.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/string/convertUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/convertUrl.ts -------------------------------------------------------------------------------- /src/string/formatFileSize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/formatFileSize.ts -------------------------------------------------------------------------------- /src/string/hump2underline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/hump2underline.ts -------------------------------------------------------------------------------- /src/string/isEmpty.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/isEmpty.ts -------------------------------------------------------------------------------- /src/string/isNotEmpty.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/isNotEmpty.ts -------------------------------------------------------------------------------- /src/string/number2chinese.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/number2chinese.ts -------------------------------------------------------------------------------- /src/string/split.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/split.ts -------------------------------------------------------------------------------- /src/string/underline2hump.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/underline2hump.ts -------------------------------------------------------------------------------- /src/string/uuid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/string/uuid.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/array/flat2tree.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/array/flat2tree.test.ts -------------------------------------------------------------------------------- /test/array/tree2flat.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/array/tree2flat.test.ts -------------------------------------------------------------------------------- /test/string/convertUrl.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/convertUrl.test.ts -------------------------------------------------------------------------------- /test/string/formatFileSize.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/formatFileSize.test.ts -------------------------------------------------------------------------------- /test/string/hump2underline.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/hump2underline.test.ts -------------------------------------------------------------------------------- /test/string/isEmpty.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/isEmpty.test.ts -------------------------------------------------------------------------------- /test/string/isNotEmpty.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/isNotEmpty.test.ts -------------------------------------------------------------------------------- /test/string/number2chinese.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/number2chinese.test.ts -------------------------------------------------------------------------------- /test/string/split.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/split.test.ts -------------------------------------------------------------------------------- /test/string/underline2hump.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/underline2hump.test.ts -------------------------------------------------------------------------------- /test/string/uuid.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/test/string/uuid.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohe0601/xiaohejs/HEAD/vitest.config.ts --------------------------------------------------------------------------------