2.0.4 • Published 7 years ago

@rill/progress v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Adds a simple loading bar during requests with Rill. The progress bar is powered by nprogress.

Installation

npm install @rill/progress

Example

var app = require('rill')()
var progress = require('@rill/progress')

// All requests to the app will now have a progress bar.
app.use(progress({ speed: 500, easing: 'ease' }))

Options

{
  color: "green", // The default color of the progress bar and spinner.
  spinner: true,    // Show the spinning circle along with the bar.
  parent: "body",  // The element that will contain the progress bar.
  style: true     // Uses inline styles to create the progress bar. Set to false to use your own.
}

Styling

All styles are injected into the document when the page is loaded. You can see the unminified styles here. To use your own styles use style: false to disable the inline styles.

Contributions

  • Use npm test to run tests.

Please feel free to create a PR!

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

9 years ago