current-device

v0.10.1

The easiest way to write conditional CSS and/or JavaScript based on device operating system (iOS, Android, Blackberry, Windows, Firefox OS, MeeGo, AppleTV, etc), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).

MIT
Latest version published 6 months ago
    npm install current-device
  

Explore Similar Packages

Package Health Score

75 / 100
  • Popularity
    Recognized
  • Maintenance
    Sustainable
  • Security
    No known security issues
  • Community
    Active

Popularity

Recognized
Weekly Downloads (8,935)
Dependents
51
GitHub Stars
3.63K
Forks
598
Contributors
30

The npm package current-device receives a total of 8,935 downloads a week. As such, we scored current-device popularity level to be Recognized.

Based on project statistics from the GitHub repository for the npm package current-device, we found that it has been starred 3,632 times, and that 51 other projects on the ecosystem are dependent on it.

Downloads are calculated as moving averages for a period of the last 12 months, excluding weekends and known missing data points.

Security

No known security issues

Security and license risk for recent versions


Direct Vulnerabilities

0.8.2
0.9.0
0.9.1
0.10.0
0.10.1
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L

Indirect Vulnerabilities

0.8.2
0.9.0
0.9.1
0.10.0
0.10.1
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L

License Risks

0.8.2
0.9.0
0.9.1
0.10.0
0.10.1
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L
  • 0
    H
  • 0
    M
  • 0
    L

Security Policy
No
All security vulnerabilities belong to production dependencies of direct and indirect packages.

You can connect your project's repository to Snyk to stay up to date on security alerts and receive automatic fix pull requests.

We found a way for you to contribute to the project! Looks like current-device is missing a security policy.

    # Install the Snyk CLI and test your project
npm i snyk && snyk test current-device
Fix it in your project with Snyk!

Maintenance

Sustainable
Commit Frequency
Open Issues
35
Merged PR
137
Open PR
5
Last Commit
13 days ago

Further analysis of the maintenance status of current-device based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Sustainable.

We found that current-device demonstrates a positive version release cadence with at least one new version released in the past 12 months.

As a healthy sign for on-going project maintenance, we found that the GitHub repository had at least 1 pull request or issue interacted with by the community.

Community

Active
Readme.md
Yes
Contributing.md
No
Code of Conduct
Yes
Contributors
30
Funding
Yes
License
MIT

With more than 10 contributors for the current-device repository, this is possibly a sign for a growing and inviting community.

Package

Node.js Compatibility
not defined

Age
3 years
Dependencies
0 Direct / 0 Total
Versions
5
Install Size
65 kB
Dist-tags
1
# of Files
8
Maintainers
1
TS Typings
No

current-device has more than a single and default latest tag published for the npm package. This means, there may be other tags available for this package, such as next to indicate future releases, or stable to indicate stable releases.