https://github.com/scriptex/npm-maintainer

Web component which shows statistics for a user in NPM

https://github.com/scriptex/npm-maintainer

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

npm-stats statistics web-component

Keywords from Contributors

documents zsh-plugin communication
Last synced: 6 months ago · JSON representation

Repository

Web component which shows statistics for a user in NPM

Basic Info
Statistics
  • Stars: 6
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 2
Topics
npm-stats statistics web-component
Created over 5 years ago · Last pushed 6 months ago
Metadata Files
Readme Funding License

README.md

Github Build Codacy Badge Codebeat Badge CodeFactor Badge DeepScan grade Analytics

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

GitHub stars GitHub forks GitHub watchers GitHub followers

Code stats

GitHub code size in bytes GitHub repo size GitHub language count GitHub top language GitHub last commit

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

Connect with me:


                     

Support and sponsor my work:

Owner

  • Name: Atanas Atanasov
  • Login: scriptex
  • Kind: user
  • Location: Varna, Bulgaria
  • Company: @html-lab @toptal @braintrustofficial @andela @dmarcian

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

All Time
  • Total Commits: 93
  • Total Committers: 3
  • Avg Commits per committer: 31.0
  • Development Distribution Score (DDS): 0.441
Past Year
  • Commits: 13
  • Committers: 2
  • Avg Commits per committer: 6.5
  • Development Distribution Score (DDS): 0.154
Top Committers
Name Email 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
enhancement (1)
Pull Request Labels
dependencies (29) enhancement (4) documentation (1)

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.

  • Versions: 3
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 334 Last month
Rankings
Downloads: 5.4%
Dependent repos count: 10.3%
Stargazers count: 10.9%
Forks count: 11.6%
Average: 11.8%
Dependent packages count: 20.9%
Maintainers (1)
Funding
  • https://github.com/sponsors/scriptex
Last synced: 6 months ago

Dependencies

package.json npm
  • tslib 2.4.0 development
  • typescript 4.7.4 development
.github/workflows/build.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
yarn.lock npm
  • tslib 2.4.1
  • typescript 4.9.4