https://github.com/abraham/node-package
Node Package Web Component
https://github.com/abraham/node-package
node-package npm web-components
Last synced: 3 months ago
JSON representation
Node Package Web Component
- Host: GitHub
- URL: https://github.com/abraham/node-package
- Owner: abraham
- License: mit
- Created: 2018-02-18T22:03:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-02T22:59:32.000Z (almost 2 years ago)
- Last Synced: 2025-03-28T22:34:59.198Z (3 months ago)
- Topics: node-package, npm, web-components
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/node-package
- Size: 813 KB
- Stars: 21
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
<node-package>
====
[](https://npmjs.com/package/node-package)
[](https://circleci.com/gh/abraham/node-package)
[](https://travis-ci.org/abraham/node-package)
[](https://ci.appveyor.com/project/abraham/node-package)
[](https://david-dm.org/abraham/node-package)
[](https://bundlephobia.com/result?p=node-package)Install
----Polyfill tags if you need them. This will include ShadowDOM and Custom Elements support.
```
```
Loading this component. It would be a good idea to use a specific version instead of `latest`.
```
```
Example
----[Live demo](https://codepen.io/abraham/pen/eVVJrM)
Usage
----Set the `name` attribute to the name of an [NPM](https://www.npmjs.com/) package.
```
```

Add the `global` attribute to add `--global` to the NPM install command.
```
```
Will result in `npm install @angular/cli --global`.
Theming
----For advanced theming you can set the following CSS custom properties:
- `--node-package-background-color`
- `--node-package-color`
- `--node-package-link-color`Blue theme
```
node-package.blue {
--node-package-background-color: #03A9F4;
--node-package-color: #FAFAFA;
--node-package-link-color: #dadce0;
}```

Red theme
```
node-package.red {
--node-package-background-color: #CB3837;
--node-package-color: #FAFAFA;
--node-package-link-color: #dadce0;
}```

Card border
You can also apply custom edge designs to look more like a card.
```
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;
}```

Demo of install commands being copied.

License
----NodePackage is released under an MIT license.
Built, tested, and published with [Nutmeg](https://nutmeg.tools).