Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@macro-plugin/shared

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@macro-plugin/shared

macro-plugin shared utils for plugins

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@macro-plugin/shared

Shared utils for internel and plugin usage.

Installation

# if you use npm
npm i -D @macro-plugin/shared
# if you use pnpm
pnpm i -D @macro-plugin/shared
# if you use yarn
yarn add -D @macro-plugin/shared

API

addHook

add a require hook

picomatch

picomatch file matcher

autoRequire

require or import a package

loadConfigFile

async loading macros.config.js or macros.config.ts.

loadConfigFileSync

sync loading macros.config.js or macros.config.ts.

writeDts

write dts to path, check if content is same first.

extractSwcOptions

extract swc options from all your defined options.

buildTransformOptions

load config file, then return [swcOptions, macroOptions, configPath]

extractInput

split (file | pattern)[] to { files, patterns }

extractFiles

extract files from (file | pattern)[]

FAQs

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc