Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ng2-progressbar
Advanced tools
A nanoscopic progress bar. Featuring realistic trickle animations to convince your users that something is happening!
Install it with npm
npm install ng2-progressbar --save
Add NgProgressModule
to NgModule imports
array.
import { NgProgressModule } from 'ng2-progressbar';
@NgModule({
imports: [
NgProgressModule
]
})
In your template
<ng-progress></ng-progress>
Add NgProgressService
wherever you want to use the progressbar.
import {NgProgressService} from "ng2-progressbar";
@Component({
/** */
})
constructor(private pService: NgProgressService) {
}
ngOnInit(){
/** request started */
this.pService.start();
this.http.get(url).subscribe(res){
/** request completed */
this.pService.done();
}
}
NgProgressService.start()
Shows the progress bar
NgProgressService.set(n)
Sets a percentage n (where n is between 0-1)
NgProgressService.inc(n)
Increments by n (where n is between 0-1)
NgProgressService.done()
Completes the progress
NgProgressService.colors = [color1, color2, color3, ...]
if presented, animates the progress color with colors array
NgProgressService.colorsInterval = 500
progressbar colors transition speed in ms
<ng-progress [positionUsing]="'marginLeft'" [minimum]="0.15" [ease]="'linear'"
[speed]="'200'" [showSpinner]="'false'" [direction]="'rightToLeftIncreased'"
[color]="'red'" [trickle]="true" [trickleSpeed]="250"
></ng-progress>
0.0
to 1.0
.Progress initial starting value, default 0.08
Progress animation ease, default linear
.
Transition speed, default 300
.
Auto trickle the progressbar, default true
Progress trickling speed, default 300
.
leftToRightIncreased
, leftToRightReduced
, rightToLeftIncreased
, rightToLeftReduced
.Progressbar direction for LTR and RTL websites, default: leftToRightIncreased
.
marginLeft
, translate
, translate3d
.Positioning method, default: marginLeft
#1eb77f
, brown
, rgb(30, 183, 127)
.Set the progressbar color, default: #29d
Display the spinner, default: true
.
Toggle the progressbar (alternate to start
/done
), . default false
.
If you identify any errors in the library, or have an idea for an improvement, please open an issue. I am excited to see what the community thinks of this project, and I would love your input!
## Author ## CreditsInspired by NProgress.js by Rico Sta. Cruz.
## License0.1.5
Initial release
FAQs
A slim customizable progressbar for angular2
The npm package ng2-progressbar receives a total of 65 weekly downloads. As such, ng2-progressbar popularity was classified as not popular.
We found that ng2-progressbar 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.