Skip to main content

@xtool/tool@0.1.13

latest

一些通用函数工具。

This package works with Bun, Cloudflare Workers, Node.js, Deno, Browsers
JSR Score
100%
Published
2 hours ago (0.1.13)

函数说明

函数 说明
checkXS 检查汉字是否属于姓氏
logTime 生成带颜色的时间字符串
playMusic 调用chrome.exe来播放音乐
randomNum 生成随机数

Examples

first new a ts file named test.ts.

import { checkXS, randomNum, logTime } from "jsr:@xtool/tool";

console.log(randomNum(6));
console.log(logTime);

then run the below command:

$ deno run test.ts

Add Package

deno add @xtool/tool

Import symbol

import * as mod from "@xtool/tool";

Add Package

npx jsr add @xtool/tool

Import symbol

import * as mod from "@xtool/tool";

Add Package

yarn dlx jsr add @xtool/tool

Import symbol

import * as mod from "@xtool/tool";

Add Package

pnpm dlx jsr add @xtool/tool

Import symbol

import * as mod from "@xtool/tool";

Add Package

bunx jsr add @xtool/tool

Import symbol

import * as mod from "@xtool/tool";