https://github.com/scriptex/npm-maintainer
Web component which shows statistics for a user in NPM
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Web component which shows statistics for a user in NPM
Basic Info
- Host: GitHub
- Owner: scriptex
- License: mit
- Language: TypeScript
- Default Branch: master
- Homepage: https://npm-maintainer.atanas.info/
- Size: 115 KB
Statistics
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 2
Topics
Metadata Files
README.md
NPM Maintainer
Statistics for a NPM user. See the demo here
A web component which shows various statistics for a user in the NPM database.
Visitor stats
Code stats
Install
```sh npm i npm-maintainer
or
yarn add npm-maintainer ```
Usage
js
// In your JS entrypoint
import 'npm-maintainer';
```html <!-- In your HTML file -->
<npm-maintainer user="scriptex" error="An unknown error occurred. Please try again later." loading="Loading data from NPM..."
```
Attributes
| Name | Type | Required | Default | Description |
| --------- | -------- | -------- | --------------------- | ---------------------------------- |
| user | string | true | '' | The user name from NPM |
| error | string | false | 'Error loading data.' | Message shown when an error occurs |
| loading | string | false | 'Loading data...' | Message shown when loading data |
Styling
The npm-maintainer Web Component utilizes the ::part() pseudo-element. In order to add custom styles, you should use the corresponding parts of the components:
-
error- The element which shows the error message -
loading- The element which shows the loading message -
content- The element which shows the data table -
table- The <table> itself -
thead- The <thead> element -
thead-row - The <tr> inside the <thead> element -
tbody- The <tbody> element -
tbody-row - The <tr> inside the <tbody> element -
th- the <th> elements -
td- the <td> elements
Here is an example:
```css npm-maintainer { display: block; }
npm-maintainer::part(error), npm-maintainer::part(loading) { text-align: center; min-height: 75vh; display: flex; align-items: center; align-content: center; justify-content: center; }
npm-maintainer::part(error) { color: red; }
npm-maintainer::part(table) { width: 100%; border-collapse: collapse; border-spacing: 0; }
npm-maintainer::part(th), npm-maintainer::part(td) { padding: 0.25rem; border: 1px solid; }
npm-maintainer::part(link) { color: inherit; text-decoration: underline; }
npm-maintainer::part(link):hover { text-decoration: none; } ```
LICENSE
MIT
Owner
- Name: Atanas Atanasov
- Login: scriptex
- Kind: user
- Location: Varna, Bulgaria
- Company: @html-lab @toptal @braintrustofficial @andela @dmarcian
- Website: https://atanas.info
- Twitter: scriptexbg
- Repositories: 86
- Profile: https://github.com/scriptex
Frontend Consultant; Web, Mobile and Desktop Applications Developer; Open-Source Software Maintainer; Team Lead; Mentor;
GitHub Events
Total
- Delete event: 7
- Issue comment event: 5
- Push event: 8
- Pull request event: 5
- Create event: 8
Last Year
- Delete event: 7
- Issue comment event: 5
- Push event: 8
- Pull request event: 5
- Create event: 8
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| renovate[bot] | 2****] | 52 |
| Renovate Bot | b****t@r****m | 24 |
| Atanas Atanasov | s****g@g****m | 17 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 2
- Total pull requests: 34
- Average time to close issues: 3 months
- Average time to close pull requests: about 15 hours
- Total issue authors: 2
- Total pull request authors: 2
- Average comments per issue: 1.0
- Average comments per pull request: 1.06
- Merged pull requests: 31
- Bot issues: 1
- Bot pull requests: 28
Past Year
- Issues: 1
- Pull requests: 5
- Average time to close issues: 23 minutes
- Average time to close pull requests: about 2 hours
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 2.0
- Average comments per pull request: 2.0
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- scriptex (1)
- renovate[bot] (1)
Pull Request Authors
- renovate[bot] (28)
- scriptex (6)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 334 last-month
- Total dependent packages: 1
- Total dependent repositories: 1
- Total versions: 3
- Total maintainers: 1
npmjs.org: npm-maintainer
A web component which shows various statistics for a user in the NPM database.
- Homepage: https://npm-maintainer.atanas.info
- License: MIT
-
Latest release: 1.0.2
published over 3 years ago
Rankings
Maintainers (1)
Funding
- https://github.com/sponsors/scriptex
Dependencies
- tslib 2.4.0 development
- typescript 4.7.4 development
- actions/checkout v3 composite
- actions/setup-node v3 composite
- tslib 2.4.1
- typescript 4.9.4