{"id":15377090,"url":"https://github.com/abraham/node-package","last_synced_at":"2025-04-15T16:41:34.588Z","repository":{"id":29540963,"uuid":"121994944","full_name":"abraham/node-package","owner":"abraham","description":"Node Package Web Component","archived":false,"fork":false,"pushed_at":"2023-08-02T22:59:32.000Z","size":833,"stargazers_count":21,"open_issues_count":15,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T22:34:59.198Z","etag":null,"topics":["node-package","npm","web-components"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/node-package","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abraham.png","metadata":{"funding":{"github":"abraham"},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-18T22:03:44.000Z","updated_at":"2022-03-26T16:50:13.000Z","dependencies_parsed_at":"2024-06-21T04:10:49.231Z","dependency_job_id":null,"html_url":"https://github.com/abraham/node-package","commit_stats":{"total_commits":113,"total_committers":2,"mean_commits":56.5,"dds":0.1504424778761062,"last_synced_commit":"084f9deb552ef4e4ac3af0e20e71b55a2e20678a"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abraham%2Fnode-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abraham%2Fnode-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abraham%2Fnode-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abraham%2Fnode-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abraham","download_url":"https://codeload.github.com/abraham/node-package/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550616,"owners_count":21122934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["node-package","npm","web-components"],"created_at":"2024-10-01T14:09:40.137Z","updated_at":"2025-04-15T16:41:34.560Z","avatar_url":"https://github.com/abraham.png","language":"TypeScript","readme":"\u0026lt;node-package\u0026gt;\n====\n[![Version Status](https://img.shields.io/npm/v/node-package.svg?style=flat\u0026label=version\u0026colorB=4bc524)](https://npmjs.com/package/node-package)\n[![macOS Build Status](https://img.shields.io/circleci/project/github/abraham/node-package.svg?style=flat\u0026label=macos)](https://circleci.com/gh/abraham/node-package)\n[![Linux Build Status](https://img.shields.io/travis/abraham/node-package.svg?style=flat\u0026label=linux)](https://travis-ci.org/abraham/node-package)\n[![Windows Build Status](https://img.shields.io/appveyor/ci/abraham/node-package.svg?style=flat\u0026label=windows)](https://ci.appveyor.com/project/abraham/node-package)\n[![Dependency Status](https://david-dm.org/abraham/node-package.svg?style=flat)](https://david-dm.org/abraham/node-package)\n[![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/node-package.svg?style=flat\u0026colorB=4bc524)](https://bundlephobia.com/result?p=node-package)\n\nInstall\n----\n\nPolyfill tags if you need them. This will include ShadowDOM and Custom Elements support.\n\n```\n\u003cscript src=\"https://unpkg.com/@webcomponents/webcomponentsjs@latest/bundles/webcomponents-sd-ce.js\"\u003e\u003c/script\u003e\n```\n\nLoading this component. It would be a good idea to use a specific version instead of `latest`.\n\n```\n\u003cscript src=\"https://unpkg.com/node-package@latest/dist/node-package.min.js\"\u003e\u003c/script\u003e\n```\n\nExample\n----\n\n[Live demo](https://codepen.io/abraham/pen/eVVJrM)\n\nUsage\n----\n\nSet the `name` attribute to the name of an [NPM](https://www.npmjs.com/) package.\n\n```\n\u003cnode-package name=\"lodash\"\u003e\u003c/node-package\u003e\n```\n\n![Example](https://github.com/abraham/node-package/raw/master/images/default.png)\n\nAdd the `global` attribute to add `--global` to the NPM install command.\n\n```\n\u003cnode-package name=\"@angular/cli\" global\u003e\u003c/node-package\u003e\n```\n\nWill result in `npm install @angular/cli --global`.\n\nTheming\n----\n\nFor advanced theming you can set the following CSS custom properties:\n\n- `--node-package-background-color`\n- `--node-package-color`\n- `--node-package-link-color`\n\nBlue theme\n\n```\n\u003cstyle\u003e\n  node-package.blue {\n    --node-package-background-color: #03A9F4;\n    --node-package-color: #FAFAFA;\n    --node-package-link-color: #dadce0;\n  }\n\u003c/style\u003e\n\u003cnode-package name=\"bluebird\" class=\"blue\"\u003e\u003c/node-package\u003e\n```\n\n![Example with blue theme](https://github.com/abraham/node-package/raw/master/images/custom-theme-blue.png)\n\nRed theme\n\n```\n\u003cstyle\u003e\n  node-package.red {\n    --node-package-background-color: #CB3837;\n    --node-package-color: #FAFAFA;\n    --node-package-link-color: #dadce0;\n  }\n\u003c/style\u003e\n\u003cnode-package name=\"@nutmeg/cli\" class=\"red\"\u003e\u003c/node-package\u003e\n```\n\n![Example with red theme](https://github.com/abraham/node-package/raw/master/images/custom-theme-red.png)\n\nCard border\n\nYou can also apply custom edge designs to look more like a card.\n\n```\n\u003cstyle\u003e\n  node-package.card {\n    box-shadow: 0 3px 4px 1px rgba(0, 0, 0, .08), 0 1px 1px 1px rgba(0, 0, 0, .05);\n    border-radius: 2px;\n    border-width: 0;\n  }\n\u003c/style\u003e\n\u003cnode-package name=\"lite-server\" class=\"card\"\u003e\u003c/node-package\u003e\n```\n\n![Example with card border](https://github.com/abraham/node-package/raw/master/images/card.png)\n\nDemo of install commands being copied.\n\n![Example of copying install command](https://github.com/abraham/node-package/raw/master/images/copy-install.gif)\n\nLicense\n----\n\nNodePackage is released under an MIT license.\n\nBuilt, tested, and published with [Nutmeg](https://nutmeg.tools).\n","funding_links":["https://github.com/sponsors/abraham"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabraham%2Fnode-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabraham%2Fnode-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabraham%2Fnode-package/lists"}