Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ng-star
Advanced tools
## This Angular library generates stars for rating provided with properties to control every aspect of generated star.
Readme
<lib-ng-star [rating]="7.5" [selectedColor]="'blue'" [unselectedColor]="'black'" [starSize]="30" [totalStars]="10"></lib-ng-star>
7.5 stars with blue color and remaining 2.5 stars with black color will be generated where each star will have size of 30 px.This Angular library generates stars for rating provided with properties to control every aspect of generated star.
This Angular library generates stars for rating provided with properties to control every aspect of generated star.
Explore the docs »
Report Bug
·
Request Feature
This Angular library generates stars for rating provided with properties to control every aspect of generated star.
To get a local copy up and running follow these simple steps.
npm install ng-star
example = <lib-ng-star [rating]="7.5" [selectedColor]="'blue'" [unselectedColor]="'black'" [starSize]="30" [totalStars]="10"></lib-ng-star>
For the stars to generate correctly, import font awesome and boostrap in your project or connect to internet: You can use these properties to control how your stars will appear.
[rating] = "number"
This is used to provide rating to the component. Precision of upto 1 point after decimal is supported.(default 0)[selectedColor]="'blue'"
This is used to provide color to selected stars(in this ex blue).(default yellow)[unselectedColor]="'black'"
This is used to provide color to unselected stars(in this ex black).(default white)[starSize]="number"
This is used to provide size of each star in px(default 30px).[totalStars]="number"
This is used to provide total number of stars(default 5).Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE
for more information.
Abhishek Kumar - Email
Project Link: https://github.com/sami-colon/ng-star
FAQs
## This Angular library generates stars for rating provided with properties to control every aspect of generated star.
The npm package ng-star receives a total of 138 weekly downloads. As such, ng-star popularity was classified as not popular.
We found that ng-star demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.