Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

cool-common-utils

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cool-common-utils

cool工具函数库

latest
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

工具函数库

安装

npm install cool-common-utils

使用方法

http请求使用


import { CreateRequest } from 'cool-common-utils'

const baseApi = createHttp(baseURL, options)

baseApi.get('接口名称', '参数')

baseApi.post('接口名称', '参数')

baseApi.delete('接口名称', '参数')

message提示框使用


import { SweetSuccess, SweetError, SweetWarning, SweetConfirm, SweetAlert } from 'cool-common-utils'

SweetSuccess('') // 参数1: 提示信息, 参数2:持续时间 默认 2000
SweetError('') // 参数1: 提示信息, 参数2:持续时间 默认 2000
SweetWarning('') //参数1: 提示信息, 参数2:持续时间 默认 2000
SweetConfirm('')
SweetAlert('') //参数: 提示信息

Keywords

cool-common-utils

FAQs

Package last updated on 27 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts