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

@binary-star/aencap

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binary-star/aencap

自定义功能封装库

latest
Source
npmnpm
Version
1.0.11
Version published
Maintainers
1
Created
Source

AEncap

快速开始

安装

yarn add @binary-star/aencap
# or 
npm install @binary-star/aencap

使用

引用部分模块, 根据文档进行使用

扩展类型 (以树模块举例,非 TS 环境跳过)

declare module "@binary-star/aencap/tree" { 
  export * from '@binary-star/aencap/types/tree'
}

引入模块方法

import { findNode } from '@binary-star/aencap/tree'

使用 调用树模块中的 findNode 来查询单个节点方法

const node = findNode([{ id : 1 , name : '张三', children : [] }] , { id : 1 } , { 
    key : 'id' ,
    children : 'children'
})

Keywords

hooks

FAQs

Package last updated on 08 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