Socket
Socket
Sign inDemoInstall

circular-progress-bar

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circular-progress-bar

CSS circular progress bar.


Version published
Weekly downloads
68
decreased by-29.17%
Maintainers
1
Weekly downloads
 
Created
Source

Circular-progress-bar

dependencies Status devDependencies Status

Sample progress-bar

CSS circular progress bar.

Installation

npm install circular-progress-bar

Usage

Once installed, add it to your project with common.js or ES6 syntax :

const CircularProgressBar = require("circular-progress-bar");
// or
import CircularProgressBar from "circular-progress-bar";

Then, you can start to use it on your code :

const options = {
    size: 200,
    background: "transparent"
};
const progress = new CircularProgressBar(42, options);
progress.appendTo(document.body);

Since today's web browser don't support module requirements yet, you need to use a bundler like webpack or browserify.

This module need its style, so your build chain need to be able to deal with CSS file import.

CDN

If you want to go old-school, you can fetch the script with unpkg or jsdelivr.

<script src="https://unpkg.com/circular-progress-bar"></script>
<!-- or -->
<script src="https://cdn.jsdelivr.net/npm/circular-progress-bar"></script>

<script>
    console.log(new CircularProgressBar());
</script>

Documentation

Go see the full documentation or some examples.

License

MIT

Keywords

FAQs

Package last updated on 26 Jul 2018

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