
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@pluginjs/component
Advanced tools
A flexible modern component js plugin.
npm i @pluginjs/component
yarn add @pluginjs/component
Webpack && Rollup:
ECMAScript Modules
import component from "@pluginjs/component"
CommonJS
require("@pluginjs/component")
CDN: Development:
<script src="/path/to/component.js"></script>
<link rel="stylesheet" href="/path/to/component.css">
Production:
<script src="/path/to/component.min.js"></script>
<link rel="stylesheet" href="/path/to/component.min.css">
HTML:
<body>
<div class="element"></div>
</body>
JS:
Pj.Component('.element', options);
// or jquery way
$('.element').plugin('Component', options);
Methods are called on component instances through the component method itself. You can also save the instances to variable for further use.
Name | Description |
---|---|
"getDataOptions" | Make plugin themeable |
example:
$component.plugin('Component', getDataOptions)
$component.plugin('Component', getDataOptions, "foo")
$component.plugin('Component', getDataOptions, "foo", "bar")
Tested on all major browsers.
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|---|
Latest ✓ | Latest ✓ | Latest ✓ | Latest ✓ | >=10 ✓ | Latest ✓ |
As a jQuery plugin, you also need to see the jQuery Browser Support.
See Contribution.md.
To see the list of recent changes, see Releases section.
Version: 0.2.3
Copyright (C) 2017 Creation Studio Limited.
Licensed under the GPL-v3 license.
FAQs
A workflow for modern frontend development.
The npm package @pluginjs/component receives a total of 124 weekly downloads. As such, @pluginjs/component popularity was classified as not popular.
We found that @pluginjs/component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.