{"_id":"nprogress","_rev":"325504","name":"nprogress","description":"Simple slim progress bars","dist-tags":{"latest":"0.2.0","next":"1.0.0-1"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"time":{"modified":"2021-06-07T02:44:32.000Z","created":"2014-06-20T17:03:01.918Z","1.0.0-1":"2020-04-19T01:12:30.584Z","1.0.0-0":"2020-04-19T01:10:01.702Z","0.2.0":"2015-05-13T10:31:26.370Z","0.1.6":"2014-06-25T04:42:45.929Z","0.1.5":"2014-06-20T17:14:21.812Z","0.1.4":"2014-06-20T17:03:01.918Z"},"users":{"attomos":true,"amongiants":true,"rstacruz":true,"denji":true,"hiyingcai":true,"ncoop":true,"malitov":true,"filipve":true,"fabrianibrahim":true,"travm":true,"narven":true,"bogdanvlviv":true,"qingleili":true,"juje":true,"edwardxyt":true,"456wyc":true,"shuoshubao":true,"liupengbo":true,"nsxz":true,"xfloops":true,"moonrailgun":true,"fadihania":true,"brugnara":true,"chenzhuoqi":true,"gugadev":true,"ridermansb":true,"cfleschhut":true,"yanghcc":true},"author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"repository":{"type":"git","url":"https://github.com/rstacruz/nprogress.git"},"versions":{"1.0.0-1":{"name":"nprogress","description":"Simple slim progress bars","version":"1.0.0-1","author":{"name":"Rico Sta. Cruz","email":"rstacruz@users.noreply.github.com"},"bugs":{"url":"https://github.com/rstacruz/nprogress/issues"},"dependencies":{},"devDependencies":{"@babel/core":"^7.9.0","@babel/plugin-transform-modules-commonjs":"^7.9.0","@types/jest":"^25.2.1","babel-jest":"^25.2.6","jest":"^25.2.7","microbundle":"^0.11.0","prettier":"^2.0.4"},"homepage":"https://github.com/rstacruz/nprogress#readme","keywords":["bar","indicator","loading","nprogress","progress"],"license":"MIT","main":"dist/nprogress.js","module":"dist/nprogress.mjs","publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/nprogress.git"},"scripts":{"build":"microbundle","dev":"microbundle watch","format":"prettier --write 'src/*.js' 'css/*.{css,scss}'","prettier:check":"prettier --check 'src/*.js' 'css/*.{css,scss}'","test":"jest"},"source":"src/nprogress.js","umd:main":"dist/nprogress.umd.js","readmeFilename":"README.md","licenseText":"Copyright (c) 2013-2014 Rico Sta. Cruz\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"nprogress@1.0.0-1","dist":{"shasum":"dd4cce2b951f9359028facd6c51cc9c49ecfa1a2","size":17182,"noattachment":false,"key":"/nprogress/-/nprogress-1.0.0-1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nprogress/download/nprogress-1.0.0-1.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nprogress_1.0.0-1_1587258750450_0.9098758290826006"},"_hasShrinkwrap":false,"publish_time":1587258750584,"_cnpm_publish_time":1587258750584},"1.0.0-0":{"name":"nprogress","description":"Simple slim progress bars","version":"1.0.0-0","author":{"name":"Rico Sta. Cruz","email":"rstacruz@users.noreply.github.com"},"bugs":{"url":"https://github.com/rstacruz/nprogress/issues"},"dependencies":{},"devDependencies":{"@babel/core":"^7.9.0","@babel/plugin-transform-modules-commonjs":"^7.9.0","@types/jest":"^25.2.1","babel-jest":"^25.2.6","jest":"^25.2.7","microbundle":"^0.11.0","prettier":"^2.0.4"},"homepage":"https://github.com/rstacruz/nprogress#readme","keywords":["bar","indicator","loading","nprogress","progress"],"license":"MIT","main":"dist/nprogress.js","module":"dist/nprogress.mjs","repository":{"type":"git","url":"git+https://github.com/rstacruz/nprogress.git"},"scripts":{"build":"microbundle","dev":"microbundle watch","format":"prettier --write 'src/*.js' 'css/*.{css,scss}'","prettier:check":"prettier --check 'src/*.js' 'css/*.{css,scss}'","test":"jest"},"source":"src/nprogress.js","umd:main":"dist/nprogress.umd.js","readmeFilename":"README.md","licenseText":"Copyright (c) 2013-2014 Rico Sta. Cruz\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"nprogress@1.0.0-0","dist":{"shasum":"0e5abe43859a718c03c965306cc61274ff674520","size":17161,"noattachment":false,"key":"/nprogress/-/nprogress-1.0.0-0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nprogress/download/nprogress-1.0.0-0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nprogress_1.0.0-0_1587258601547_0.30036759052881545"},"_hasShrinkwrap":false,"publish_time":1587258601702,"_cnpm_publish_time":1587258601702},"0.2.0":{"name":"nprogress","author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"description":"Simple slim progress bars","version":"0.2.0","repository":{"type":"git","url":"https://github.com/rstacruz/nprogress.git"},"scripts":{"test":"mocha"},"main":"nprogress.js","license":"MIT","devDependencies":{"chai":"~1.6.1","jquery":"^2.1.1","jsdom":"^5.4.1","mocha":"^2.2.4","mocha-jsdom":"^0.3.0"},"dependencies":{},"jspm":{"format":"global","shim":{"nprogress":{"deps":["./nprogress.css!"]}},"dependencies":{"css":"*"}},"spm":{"main":"nprogress.js","output":["nprogress.css"],"ignore":["support","test","vendor"]},"gitHead":"05e12c0bc6a3cf7460c38acec7371877abd5087e","bugs":{"url":"https://github.com/rstacruz/nprogress/issues"},"homepage":"https://github.com/rstacruz/nprogress","_id":"nprogress@0.2.0","_shasum":"cb8f34c53213d895723fcbab907e9422adbcafb1","_from":".","_npmVersion":"2.1.3","_nodeVersion":"1.6.2","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"cb8f34c53213d895723fcbab907e9422adbcafb1","size":10171,"noattachment":false,"key":"/nprogress/-/nprogress-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nprogress/download/nprogress-0.2.0.tgz"},"directories":{},"publish_time":1431513086370,"_cnpm_publish_time":1431513086370,"_hasShrinkwrap":false},"0.1.6":{"name":"nprogress","author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"description":"Simple slim progress bars","version":"0.1.6","repository":{"type":"git","url":"https://github.com/rstacruz/nprogress.git"},"scripts":{"test":"mocha -R spec"},"main":"nprogress.js","license":"MIT","devDependencies":{"chai":"~1.6.1","mocha":"~1.11.0","jsdom":"~0.6.5"},"dependencies":{},"gitHead":"d17ce5c564e8957adf161c0e2972e193ebd38b42","bugs":{"url":"https://github.com/rstacruz/nprogress/issues"},"homepage":"https://github.com/rstacruz/nprogress","_id":"nprogress@0.1.6","_shasum":"c7a3caf9f4353b178430a3ca8eaee076877ad0df","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"c7a3caf9f4353b178430a3ca8eaee076877ad0df","size":12155,"noattachment":false,"key":"/nprogress/-/nprogress-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/nprogress/download/nprogress-0.1.6.tgz"},"directories":{},"publish_time":1403671365929,"_cnpm_publish_time":1403671365929,"_hasShrinkwrap":false},"0.1.5":{"name":"nprogress","author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"description":"Simple slim progress bars","version":"0.1.5","repository":{"type":"git","url":"https://github.com/rstacruz/nprogress.git"},"scripts":{"test":"mocha -R spec"},"main":"nprogress.js","license":"MIT","devDependencies":{"chai":"~1.6.1","mocha":"~1.11.0","jsdom":"~0.6.5"},"dependencies":{},"bugs":{"url":"https://github.com/rstacruz/nprogress/issues"},"homepage":"https://github.com/rstacruz/nprogress","_id":"nprogress@0.1.5","dist":{"shasum":"37347762e2db7ab1581c5acd75b47a900288cada","size":218093,"noattachment":false,"key":"/nprogress/-/nprogress-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/nprogress/download/nprogress-0.1.5.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1403284461812,"_cnpm_publish_time":1403284461812,"_hasShrinkwrap":false},"0.1.4":{"name":"nprogress","author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"version":"0.1.4","repository":{"type":"git","url":"https://github.com/rstacruz/nprogress.git"},"scripts":{"test":"mocha -R spec"},"license":"MIT","devDependencies":{"chai":"~1.6.1","mocha":"~1.11.0","jsdom":"~0.6.5"},"description":"NProgress =========","bugs":{"url":"https://github.com/rstacruz/nprogress/issues"},"homepage":"https://github.com/rstacruz/nprogress","_id":"nprogress@0.1.4","dist":{"shasum":"4afba91200fa0c23ef8caaaa574378b179b1e9cb","size":217924,"noattachment":false,"key":"/nprogress/-/nprogress-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/nprogress/download/nprogress-0.1.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"directories":{},"publish_time":1403283781918,"_cnpm_publish_time":1403283781918,"_hasShrinkwrap":false}},"readme":"NProgress\n=========\n\nSlim progress bars for Ajax'y applications. Inspired by Google, YouTube, and\nMedium.\n\n\nInstallation\n------------\n\nAdd [nprogress.js] and [nprogress.css] to your project.\n\n```html\n<script src='nprogress.js'></script>\n<link rel='stylesheet' href='nprogress.css'/>\n```\n\nNProgress is available via [bower] and [npm] and [spm].\n\n    $ bower install --save nprogress\n    $ npm install --save nprogress\n\n[bower]: http://bower.io/search/?q=nprogress\n[npm]: https://www.npmjs.org/package/nprogress\n[spm]: http://spmjs.io/package/nprogress\n\nBasic usage\n-----------\n\nSimply call `start()` and `done()` to control the progress bar.\n\n~~~ js\nNProgress.start();\nNProgress.done();\n~~~\n\nUsing [Turbolinks] or similar? Ensure you're using Turbolinks 1.3.0+, and use \nthis: (explained \n    [here](https://github.com/rstacruz/nprogress/issues/8#issuecomment-23010560))\n\n~~~ js\n$(document).on('page:fetch',   function() { NProgress.start(); });\n$(document).on('page:change',  function() { NProgress.done(); });\n$(document).on('page:restore', function() { NProgress.remove(); });\n~~~\n\nIdeas\n-----\n\n * Add progress to your Ajax calls! Bind it to the jQuery `ajaxStart` and\n `ajaxStop` events.\n\n * Make a fancy loading bar even without Turbolinks/Pjax! Bind it to\n `$(document).ready` and `$(window).load`.\n\nAdvanced usage\n--------------\n\n__Percentages:__ To set a progress percentage, call `.set(n)`, where *n* is a\nnumber between `0..1`.\n\n~~~ js\nNProgress.set(0.0);     // Sorta same as .start()\nNProgress.set(0.4);\nNProgress.set(1.0);     // Sorta same as .done()\n~~~\n\n__Incrementing:__ To increment the progress bar, just use `.inc()`. This\nincrements it with a random amount. This will never get to 100%: use it for\nevery image load (or similar).\n\n~~~ js\nNProgress.inc();\n~~~\n\nIf you want to increment by a specific value, you can pass that as a parameter:\n\n~~~ js\nNProgress.inc(0.2);    // This will get the current status value and adds 0.2 until status is 0.994\n~~~\n\n__Force-done:__ By passing `true` to `done()`, it will show the progress bar\neven if it's not being shown. (The default behavior is that *.done()* will not\n    do anything if *.start()* isn't called)\n\n~~~ js\nNProgress.done(true);\n~~~\n\n__Get the status value:__ To get the status value, use `.status`\n\nConfiguration\n-------------\n\n#### `minimum`\nChanges the minimum percentage used upon starting. (default: `0.08`)\n\n~~~ js\nNProgress.configure({ minimum: 0.1 });\n~~~\n\n#### `template`\nYou can change the markup using `template`. To keep the progress\nbar working, keep an element with `role='bar'` in there. See the [default template]\nfor reference.\n\n~~~ js\nNProgress.configure({\n  template: \"<div class='....'>...</div>\"\n});\n~~~\n\n#### `easing` and `speed`\nAdjust animation settings using *easing* (a CSS easing string)\nand *speed* (in ms). (default: `ease` and `200`)\n\n~~~ js\nNProgress.configure({ easing: 'ease', speed: 500 });\n~~~\n\n#### `trickle`\nTurn off the automatic incrementing behavior by setting this to `false`. (default: `true`)\n\n~~~ js\nNProgress.configure({ trickle: false });\n~~~\n\n#### `trickleRate` and `trickleSpeed`\nYou can adjust the *trickleRate* (how much to increase per trickle) and \n*trickleSpeed* (how often to trickle, in ms).\n\n~~~ js\nNProgress.configure({ trickleRate: 0.02, trickleSpeed: 800 });\n~~~\n\n#### `showSpinner`\nTurn off loading spinner by setting it to false. (default: `true`)\n\n~~~ js\nNProgress.configure({ showSpinner: false });\n~~~\n\n#### `parent`\nspecify this to change the parent container. (default: `body`)\n\n~~~ js\nNProgress.configure({ parent: '#container' });\n~~~\n\nCustomization\n-------------\n\nJust edit `nprogress.css` to your liking. Tip: you probably only want to find\nand replace occurrences of `#29d`.\n\nThe included CSS file is pretty minimal... in fact, feel free to scrap it and\nmake your own!\n\nResources\n---------\n\n * [New UI Pattern: Website Loading Bars](http://www.usabilitypost.com/2013/08/19/new-ui-pattern-website-loading-bars/) (usabilitypost.com)\n\nSupport\n-------\n\n__Bugs and requests__: submit them through the project's issues tracker.<br>\n[![Issues](http://img.shields.io/github/issues/rstacruz/nprogress.svg)]( https://github.com/rstacruz/nprogress/issues )\n\n__Questions__: ask them at StackOverflow with the tag *nprogress*.<br>\n[![StackOverflow](http://img.shields.io/badge/stackoverflow-nprogress-brightgreen.svg)]( http://stackoverflow.com/questions/tagged/nprogress )\n\n__Chat__: join us at gitter.im.<br>\n[![Chat](http://img.shields.io/badge/gitter-rstacruz / nprogress-brightgreen.svg)]( https://gitter.im/rstacruz/nprogress )\n\n[default template]: \nhttps://github.com/rstacruz/nprogress/blob/master/nprogress.js#L31\n[Turbolinks]: https://github.com/rails/turbolinks\n[nprogress.js]: http://ricostacruz.com/nprogress/nprogress.js\n[nprogress.css]: http://ricostacruz.com/nprogress/nprogress.css\n\nThanks\n------\n\n**NProgress** © 2013-2014, Rico Sta. Cruz. Released under the [MIT License].<br>\nAuthored and maintained by Rico Sta. Cruz with help from [contributors].\n\n> [ricostacruz.com](http://ricostacruz.com) &nbsp;&middot;&nbsp;\n> GitHub [@rstacruz](https://github.com/rstacruz) &nbsp;&middot;&nbsp;\n> Twitter [@rstacruz](https://twitter.com/rstacruz)\n\n[MIT License]: http://mit-license.org/\n[contributors]: http://github.com/rstacruz/nprogress/contributors\n\n[![Status](https://api.travis-ci.org/rstacruz/nprogress.svg?branch=master)](http://travis-ci.org/rstacruz/nprogress) \n[![npm version](https://img.shields.io/npm/v/nprogress.png)](https://npmjs.org/package/nprogress \"View this project on npm\")\n[![spm package](http://spmjs.io/badge/nprogress)](http://spmjs.io/package/nprogress)\n","_attachments":{},"homepage":"https://github.com/rstacruz/nprogress","bugs":{"url":"https://github.com/rstacruz/nprogress/issues"},"license":"MIT"}