@ronmu/utility
v1.0.16-20241014-1342.0
Published
> 各种函数
Downloads
80
Readme
@ronmu/utility
各种函数
安装使用
- NodeJS版本~=22.8.0
npm install @ronmu/utility
pnpm install @ronmu/utility
例子代码
import { Arr } from "@ronmu/utility/arr";
(async () => {
try {
const json = await Fetch.request('get', 'https://some.com/api/team/lite');
console.log(JSON.stringify(json, null, 2));
const text = await Fetch.request('get', 'https://cip.cc');
console.log(JSON.stringify(text, null, 2));
} catch (err) {
console.error(
JSON.stringify(err, Object.getOwnPropertyNames(err), 2)
)
}
})()