New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

n-typical

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n-typical

基于 typical 的封装

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

n-typical

基于 typical

✨ 扩展功能

  • 🥪 完整的TS类型支持
  • 🥖 更直观的循环方式
  • 🍦 循环结束回调

demo-pic

📦 安装

npm i n-typical

🔨 使用

import { type } from 'n-typical'

type(element, ['text', 1000, 'text next'], 3, () => {
    // each cycle finish
})

📖 API

(
    target: HTMLElement | Element | null | undefined,
    actions: (string | number | (() => unknown))[],
    loop?: number,
    cb?: () => unknown
) => Promise<void>
参数描述
target所需要控制的元素
actions由字符串数字和方法所组成的数组
loop循换次数,如需无限循环可传 Infinity
cb每一次结束会触发的回调

Keywords

typical

FAQs

Package last updated on 17 Sep 2023

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