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

opp-hooks

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opp-hooks

Define hooks for OPP frameworks.

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

opp-hooks

Define hooks for OPP frameworks.

Installation

Using npm:

$ npm install --save opp-hooks

Defninition

import { SyncHook, SyncWaterfallHook } from 'opp-tapable';

export const core = {
  registerPlugin: new SyncWaterfallHook(['plugin']),
};

export const vue = {
  usePlugin: new SyncWaterfallHook(['pluginHooks']),
  afterCreateApp: new SyncHook(['app']),
};

export const react = {
  usePlugin: new SyncWaterfallHook(['pluginHooks']),
  afterCreateRoot: new SyncHook(['root']),
};

FAQs

Package last updated on 28 May 2025

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