Socket
Book a DemoInstallSign in
Socket

plgn

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plgn

## Commands

1.2.19
latest
npmnpm
Version published
Weekly downloads
30
Maintainers
0
Weekly downloads
 
Created
Source

Plugin Pro CLI

Commands

npx plgn login

Authenticate with Plugin Pro. Opens a browser window to complete GitHub authentication and links your CLI session to your Plugin Pro account.

npx plgn logout

Sign out from Plugin Pro. This will remove your authentication credentials from the CLI.

npx plgn compose

Compose a config plugin based on your manual native changes. Outputs a file to the plugins/ directory.

How it works

Modifying files

File modifications are handled differently based on the file type:

  • Structured: The file has a specific format that can be easily modified. For example, JSON, XML, and plist files. Moifications can be mapped to specific plugins, such as withInfo or withEntitlements.

  • Unstructured: The file does not have a specific format, and can contain any code. For example, Swift, Kotlin, and Objective-C files. Modifications are handled by merging the changes with the existing file via the withModifyFile plugin.

Adding files

When you add a new file, it will generate the appropriate plugin action. The file will also be copied into the plugins/ directory, using the same relative path. This means that you can manage your new files outside of your native directories. For example, let's say you add a new Swift file to your ios/ directory.

The following will be added to your plugin:

[withSourceFile, { filePath: "ios/NewFile.swift" }];

And the file will be copied into the plugins/ directory:

plugins/
  ios/
    NewFile.swift

Removing files

When you remove a file, the plugin action will delete the file and remove any references to it.

FAQs

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.