{"_id":"tty-aware-progress","_rev":"2874566","name":"tty-aware-progress","description":"[![Build Status](https://travis-ci.org/bkniffler/tty-aware-progress.png?branch=master)](https://travis-ci.org/bkniffler/tty-aware-progress)","dist-tags":{"latest":"1.0.4"},"maintainers":[{"name":"bkniffler","email":"bkniffler@me.com"}],"time":{"modified":"2022-10-06T06:56:18.000Z","created":"2018-12-12T11:20:51.170Z","1.0.4":"2018-12-12T13:06:10.910Z","1.0.3":"2018-12-12T12:18:33.761Z","1.0.2":"2018-12-12T12:06:17.356Z","1.0.1":"2018-12-12T12:03:36.223Z","1.0.0":"2018-12-12T11:20:51.170Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/bkniffler/tty-aware-progress.git"},"versions":{"1.0.4":{"name":"tty-aware-progress","version":"1.0.4","main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bkniffler/tty-aware-progress.git"},"dependencies":{"progress":"2.0.3"},"devDependencies":{"@types/jest":"^23.3.10","@types/progress":"^2.0.1","jest":"^23.6.0","test-console":"^1.1.0","ts-jest":"^23.10.5","typescript":"^3.2.2"},"scripts":{"prepublish":"yarn build","build":"tsc","test":"jest --env=node --colors --coverage test --verbose false --runInBand"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","testPathIgnorePatterns":["/lib/","/node_modules/"],"moduleFileExtensions":["ts","tsx","js","jsx","json","node"],"collectCoverage":true},"gitHead":"348d5d6fa91c832f6ba0f6d29bed1b5d66f6fe80","description":"[![Build Status](https://travis-ci.org/bkniffler/tty-aware-progress.png?branch=master)](https://travis-ci.org/bkniffler/tty-aware-progress)","bugs":{"url":"https://github.com/bkniffler/tty-aware-progress/issues"},"homepage":"https://github.com/bkniffler/tty-aware-progress#readme","_id":"tty-aware-progress@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"bkniffler","email":"bkniffler@me.com"},"dist":{"shasum":"63564adf7f76a8ec1169f2ae52eaad8129031000","size":60403,"noattachment":false,"key":"/tty-aware-progress/-/tty-aware-progress-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/tty-aware-progress/download/tty-aware-progress-1.0.4.tgz"},"maintainers":[{"name":"bkniffler","email":"bkniffler@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tty-aware-progress_1.0.4_1544619970775_0.1448832735231531"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T04:29:42.716Z","publish_time":1544619970910,"_cnpm_publish_time":1544619970910},"1.0.3":{"name":"tty-aware-progress","version":"1.0.3","main":"lib","license":"MIT","dependencies":{"progress":"2.0.3"},"devDependencies":{"@types/jest":"^23.3.10","@types/progress":"^2.0.1","jest":"^23.6.0","test-console":"^1.1.0","ts-jest":"^23.10.5","typescript":"^3.2.2"},"scripts":{"prepublish":"yarn compile","compile":"tsc","test":"jest --env=node --colors --coverage test --verbose false --runInBand"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","testPathIgnorePatterns":["/lib/","/node_modules/"],"moduleFileExtensions":["ts","tsx","js","jsx","json","node"],"collectCoverage":true},"gitHead":"2393c552609f8ea8e37af04aa723147c667fd66c","description":"The excellent `progress` package from npm will unfortunately ignore non-TTY environments like CI (circle-ci, travis, etc). This package uses `progress`, but in case of non-TTY, the progress will be output as rolling logs.","_id":"tty-aware-progress@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"bkniffler","email":"bkniffler@me.com"},"dist":{"shasum":"93fbe86caf0d79c35f6e104e08f3a56c5069d3d6","size":60242,"noattachment":false,"key":"/tty-aware-progress/-/tty-aware-progress-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tty-aware-progress/download/tty-aware-progress-1.0.3.tgz"},"maintainers":[{"name":"bkniffler","email":"bkniffler@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tty-aware-progress_1.0.3_1544617113573_0.673980425637503"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T04:29:42.614Z","publish_time":1544617113761,"_cnpm_publish_time":1544617113761},"1.0.2":{"name":"tty-aware-progress","version":"1.0.2","main":"lib","license":"MIT","dependencies":{"progress":"2.0.3"},"devDependencies":{"@types/jest":"^23.3.10","@types/progress":"^2.0.1","jest":"^23.6.0","test-console":"^1.1.0","ts-jest":"^23.10.5","typescript":"^3.2.2"},"scripts":{"prepublish":"yarn compile","compile":"tsc","test":"jest --env=node --colors --coverage test --verbose false --runInBand"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","testPathIgnorePatterns":["/lib/","/node_modules/"],"moduleFileExtensions":["ts","tsx","js","jsx","json","node"],"collectCoverage":true},"gitHead":"3f351318fa14a40b97cdbb51c88308a7d2fb65b8","_id":"tty-aware-progress@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"bkniffler","email":"bkniffler@me.com"},"dist":{"shasum":"74426687bcca1b4de76cbd5b1117e0ac2dc8eb23","size":59008,"noattachment":false,"key":"/tty-aware-progress/-/tty-aware-progress-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tty-aware-progress/download/tty-aware-progress-1.0.2.tgz"},"maintainers":[{"name":"bkniffler","email":"bkniffler@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tty-aware-progress_1.0.2_1544616377214_0.3028511861782326"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T04:29:42.514Z","publish_time":1544616377356,"_cnpm_publish_time":1544616377356},"1.0.1":{"name":"tty-aware-progress","version":"1.0.1","main":"lib","license":"MIT","dependencies":{"progress":"2.0.3"},"devDependencies":{"@types/jest":"^23.3.10","@types/progress":"^2.0.1","jest":"^23.6.0","test-console":"^1.1.0","ts-jest":"^23.10.5","typescript":"^3.2.2"},"scripts":{"compile":"tsc","test":"jest --env=node --colors --coverage test --verbose false --runInBand"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","testPathIgnorePatterns":["/lib/","/node_modules/"],"moduleFileExtensions":["ts","tsx","js","jsx","json","node"],"collectCoverage":true},"_id":"tty-aware-progress@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"bkniffler","email":"bkniffler@me.com"},"dist":{"shasum":"8e9b2bcda765839d7e0e82d7dc688afa334af02a","size":72274,"noattachment":false,"key":"/tty-aware-progress/-/tty-aware-progress-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tty-aware-progress/download/tty-aware-progress-1.0.1.tgz"},"maintainers":[{"name":"bkniffler","email":"bkniffler@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tty-aware-progress_1.0.1_1544616216076_0.6734998398462915"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T04:29:40.470Z","publish_time":1544616216223,"_cnpm_publish_time":1544616216223},"1.0.0":{"name":"tty-aware-progress","version":"1.0.0","main":"lib","license":"MIT","dependencies":{"progress":"2.0.3"},"devDependencies":{"@types/progress":"^2.0.1","typescript":"^3.2.2"},"_id":"tty-aware-progress@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"bkniffler","email":"bkniffler@me.com"},"dist":{"shasum":"0c4e16cccdce66ef07711874c886b013adbfb7a5","size":1871,"noattachment":false,"key":"/tty-aware-progress/-/tty-aware-progress-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tty-aware-progress/download/tty-aware-progress-1.0.0.tgz"},"maintainers":[{"name":"bkniffler","email":"bkniffler@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tty-aware-progress_1.0.0_1544613650959_0.10348073540932856"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T04:29:38.903Z","publish_time":1544613651170,"_cnpm_publish_time":1544613651170}},"readme":"# tty-aware-progress\n[![Build Status](https://travis-ci.org/bkniffler/tty-aware-progress.png?branch=master)](https://travis-ci.org/bkniffler/tty-aware-progress)\n\nThe excellent `progress` package from npm will unfortunately ignore non-TTY environments like CI (circle-ci, travis, etc). This package uses `progress`, but in case of non-TTY, the progress will be output as rolling logs.\n\n## Install\n\n```bash\nnpm install tty-aware-progress\n# or\nyarn add tty-aware-progress\n```\n\n## Use\n\n`tty-aware-progress` will only need the total number of expected ticks like shown below. It returns a function that emits progress.\n\n```js\nimport createProgress from 'tty-aware-progress';\n\nconst progress = createProgress(100);\nfor (var i = 0; i < 100; i++) {\n  progress();\n}\n\n// OR\n\nconst progress = createProgress(100);\nfor (var i = 0; i < 10; i++) {\n  progress(10);\n}\n```\n","_attachments":{},"homepage":"https://github.com/bkniffler/tty-aware-progress#readme","bugs":{"url":"https://github.com/bkniffler/tty-aware-progress/issues"},"license":"MIT"}