New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

progress-lite

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

progress-lite

A lightweight progress bar library inspired by nprogress

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

progress-lite 🚀

A lightweight progress bar library like nprogress, built for fun with custom logic and zero dependencies.
Works with React, Vue, vanilla JS, or anywhere in the browser. 🎉

npm version
npm downloads

✨ Features

  • ⚡ Tiny & dependency-free
  • 🎨 Customizable styles
  • 🔄 Start, increment, and finish progress easily
  • 🛠 Works with any framework

📦 Installation

npm install progress-lite

or with yarn:

yarn add progress-lite

🚀 Usage

Vanilla JS

import { progress } from "progress-lite"

// Start the progress bar
progress.start()

// Simulate async work
setTimeout(() => {
  progress.done()
}, 2000)

React Example

import { useEffect } from "react"
import { progress } from "progress-lite"

export default function App() {
  useEffect(() => {
    progress.start()
    setTimeout(() => progress.done(), 1500)
  }, [])

  return <h1>Hello Progress 🚀</h1>
}

⚙️ API

MethodDescription
progress.start()Start the progress bar
progress.inc()Increment progress by random amount
progress.done()Complete and hide the progress bar
progress.set(n)Set progress manually (0 → 1)

🎨 Custom Styles

The progress bar uses a default CSS.
You can override it:

#progress-lite {
  background: linear-gradient(to right, #4facfe, #00f2fe);
  height: 4px;
}

🧪 Playground

Try it live here 👉 Progress Lite Playground

📝 License

MIT © 2025 viswesh

Keywords

progress

FAQs

Package last updated on 31 Aug 2025

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