
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@capacitor/create-plugin
Advanced tools
Generate a new Capacitor plugin.
npm init @capacitor/plugin [<path>] [options]
:memo: npm init <pkg>
requires npm 6+
You can also try the following methods to use this package:
npx @capacitor/create-plugin
yarn create @capacitor/plugin
npm install -g @capacitor/create-plugin && create-capacitor-plugin
As of the 0.8.0
release, example apps for testing are included when initializing a new plugin. To use these templates, you can open the npx cap open android
or npx cap open ios
command for Android and iOS respectively. Anything in the example-app
folder will be excluded when publishing to npm.
--name <name> ............. npm package name (e.g. "capacitor-plugin-example")
--package-id <id> ......... Unique plugin ID in reverse-DNS notation (e.g. "com.mycompany.plugins.example")
--class-name <name> ....... Plugin class name (e.g. "Example")
--repo <url> .............. URL to git repository (e.g. "https://github.com/example/repo")
--author <author> ......... Author name and email (e.g. "Name <name@example.com>")
--license <id> ............ SPDX License ID (e.g. "MIT")
--description <text> ...... Short description of plugin features
FAQs
Generate a new Capacitor plugin
The npm package @capacitor/create-plugin receives a total of 904 weekly downloads. As such, @capacitor/create-plugin popularity was classified as not popular.
We found that @capacitor/create-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.