New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

page-progress-bar

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

page-progress-bar

Page progress bar for web app

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

page-progress-bar

Progress bar for web app: Nextjs, Reactjs, Vuejs, ...

Install:

  • yarn add page-progress-bar
  • npm i page-progress-bar

Usage:

  1. New ProgressBar
const progressBar = new ProgressBar({timeLoad: 250}) //timeLoad: number --> milliseconds

//OR
const progressBar = new ProgressBar() //timeLoad default = 750ms

  1. Start loading page
//When page start loading
progressBar.startLoadPage()
  1. End loading page
progressBar.endLoadPage()
  1. Set Page Error
progressBar.setErrorPage()
  1. CSS
.page-progress-bar {
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    height: 2px;
}
Bootstrap class:
    "progress-bar",
    "progress-bar-striped",
    "progress-bar-animated", 
    "bg-success",
    "bg-danger

Keywords

FAQs

Package last updated on 14 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc