You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

parsec-hooks

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parsec-hooks

秒差距前端常用的hooks工具

1.0.19
latest
npmnpm
Version published
Weekly downloads
222
103.67%
Maintainers
1
Weekly downloads
 
Created
Source

parsec-hooks

秒差距前端常用的 hooks 工具

NPM JavaScript Style Guide

Install

npm install --save parsec-hooks

Config

在文件babel.config.js 下添加配置
      {
        libraryName: 'parsec-hooks',
        camel2DashComponentName: false,
        customName: name => {
          if (/^(use)/.test(name)) {
            return `parsec-hooks/lib/${name
              .replace(/^(use)/, '')
              .replace(/^\S/, s => s.toLowerCase())}Hooks`;
          } else {
            return `parsec-hooks/lib/utils/${name}`;
          }
        }
      }

License

MIT © mushan0x0

FAQs

Package last updated on 21 Jul 2022

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