
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
node-package
Advanced tools
Polyfill tags if you need them. This will include ShadowDOM and Custom Elements support.
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@latest/bundles/webcomponents-sd-ce.js"></script>
Loading this component. It would be a good idea to use a specific version instead of latest
.
<script src="https://unpkg.com/node-package@latest/dist/node-package.min.js"></script>
Set the name
attribute to the name of an NPM package.
<node-package name="lodash"></node-package>
Add the global
attribute to add --global
to the NPM install command.
<node-package name="@angular/cli" global></node-package>
Will result in npm install @angular/cli --global
.
For advanced theming you can set the following CSS custom properties:
--node-package-background-color
--node-package-color
--node-package-link-color
Blue theme
<style>
node-package.blue {
--node-package-background-color: #03A9F4;
--node-package-color: #FAFAFA;
--node-package-link-color: #dadce0;
}
</style>
<node-package name="bluebird" class="blue"></node-package>
Red theme
<style>
node-package.red {
--node-package-background-color: #CB3837;
--node-package-color: #FAFAFA;
--node-package-link-color: #dadce0;
}
</style>
<node-package name="@nutmeg/cli" class="red"></node-package>
Card border
You can also apply custom edge designs to look more like a card.
<style>
node-package.card {
box-shadow: 0 3px 4px 1px rgba(0, 0, 0, .08), 0 1px 1px 1px rgba(0, 0, 0, .05);
border-radius: 2px;
border-width: 0;
}
</style>
<node-package name="lite-server" class="card"></node-package>
Demo of install commands being copied.
NodePackage is released under an MIT license.
Built, tested, and published with Nutmeg.
FAQs
Node Package Web Component
The npm package node-package receives a total of 164 weekly downloads. As such, node-package popularity was classified as not popular.
We found that node-package demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.