How to use the settings function from nprogress

Find comprehensive JavaScript nprogress.settings code examples handpicked from public code repositorys.

11
12
13
14
15
16
17
18
19
20
var style = opts.style === false ? '' : '<style>' + css + '</style>'

bar.configure({
  parent: 'parent' in opts ? opts.parent : undefined,
  showSpinner: 'spinner' in opts ? opts.spinner : true,
  template: style + bar.settings.template
})

return function progress (ctx, next) {
  var req = ctx.req
fork icon0
star icon1
watch icon2