{"_id":"@ljharb/resumer","_rev":"3957270","name":"@ljharb/resumer","description":"a through stream that starts paused and resumes on the next tick","dist-tags":{"latest":"0.1.3"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2025-09-01T01:42:23.000Z","created":"2023-07-18T06:55:02.223Z","0.1.3":"2024-03-09T17:35:55.440Z","0.1.2":"2024-01-27T00:32:40.299Z","0.1.1":"2024-01-27T00:10:55.436Z","0.1.0":"2024-01-26T07:33:28.238Z","0.0.1":"2023-07-18T06:55:02.223Z"},"users":{},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"git+https://github.com/ljharb/resumer.git"},"versions":{"0.1.3":{"name":"@ljharb/resumer","version":"0.1.3","description":"a through stream that starts paused and resumes on the next tick","main":"index.js","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","postlint":"tsc -p . && attw -P","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"dependencies":{"@ljharb/through":"^2.3.13","call-bind":"^1.0.7"},"devDependencies":{"@arethetypeswrong/cli":"^0.15.1","@ljharb/eslint-config":"^21.1.0","@ljharb/tsconfig":"^0.1.1","@types/call-bind":"^1.0.5","@types/node":"^20.11.25","aud":"^2.0.4","auto-changelog":"^2.4.0","concat-stream":"^1.6.2","eslint":"=8.8.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.7.5","typescript":"next"},"testling":{"files":"test/*.js"},"keywords":["through","stream","pause","resume"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ljharb/resumer.git"},"homepage":"https://github.com/ljharb/resumer","engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"@ljharb/resumer@0.1.3","gitHead":"f41c9aaf8a6b98c64958109b3d2659bf597d8236","types":"./index.d.ts","bugs":{"url":"https://github.com/ljharb/resumer/issues"},"_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"shasum":"5ef4a4958da1b4e71ffea8ef33499cc622672d89","size":5523,"noattachment":false,"key":"/@ljharb/resumer/-/@ljharb/resumer-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ljharb/resumer/download/@ljharb/resumer-0.1.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resumer_0.1.3_1710005755280_0.06347970813036752"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-09T17:35:55.440Z","publish_time":1710005755440,"_source_registry_name":"default","_cnpm_publish_time":1710005755440},"0.1.2":{"name":"@ljharb/resumer","version":"0.1.2","description":"a through stream that starts paused and resumes on the next tick","main":"index.js","types":"./resumer.d.ts","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","postlint":"tsc -p .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"dependencies":{"@ljharb/through":"^2.3.12"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","@types/node":"^20.11.7","aud":"^2.0.4","auto-changelog":"^2.4.0","concat-stream":"^1.6.2","eslint":"=8.8.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.7.4","typescript":"^5.4.0-dev.20240126"},"testling":{"files":"test/*.js"},"keywords":["through","stream","pause","resume"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ljharb/resumer.git"},"homepage":"https://github.com/ljharb/resumer","engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"@ljharb/resumer@0.1.2","gitHead":"759dc2b6285b19effae96c9b8a381e2531169e52","bugs":{"url":"https://github.com/ljharb/resumer/issues"},"_nodeVersion":"21.6.0","_npmVersion":"10.2.4","dist":{"shasum":"d57a6b8ddeb0c6f88f942fd59d7dad972248ca9d","size":8406,"noattachment":false,"key":"/@ljharb/resumer/-/@ljharb/resumer-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ljharb/resumer/download/@ljharb/resumer-0.1.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resumer_0.1.2_1706315560112_0.6879435570838044"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-27T00:32:40.299Z","publish_time":1706315560299,"_source_registry_name":"default","_cnpm_publish_time":1706315560299},"0.1.1":{"name":"@ljharb/resumer","version":"0.1.1","description":"a through stream that starts paused and resumes on the next tick","main":"index.js","types":"./resumer.d.ts","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","postlint":"tsc -p .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"dependencies":{"@ljharb/through":"^2.3.12"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","@types/node":"^20.11.7","aud":"^2.0.4","auto-changelog":"^2.4.0","concat-stream":"^1.6.2","eslint":"=8.8.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.7.4","typescript":"^5.4.0-dev.20240126"},"testling":{"files":"test/*.js"},"keywords":["through","stream","pause","resume"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ljharb/resumer.git"},"homepage":"https://github.com/ljharb/resumer","engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"@ljharb/resumer@0.1.1","gitHead":"7cb82171ad4fcf3f36fd6a462d8663795f028031","bugs":{"url":"https://github.com/ljharb/resumer/issues"},"_nodeVersion":"21.6.0","_npmVersion":"10.2.4","dist":{"shasum":"ad4b0190debd914a2499d105229575b8460e8a83","size":8345,"noattachment":false,"key":"/@ljharb/resumer/-/@ljharb/resumer-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ljharb/resumer/download/@ljharb/resumer-0.1.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resumer_0.1.1_1706314255203_0.7812254289746836"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-27T00:10:55.436Z","publish_time":1706314255436,"_source_registry_name":"default","_cnpm_publish_time":1706314255436},"0.1.0":{"name":"@ljharb/resumer","version":"0.1.0","description":"a through stream that starts paused and resumes on the next tick","main":"index.js","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","postlint":"tsc -p .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"dependencies":{"@ljharb/through":"^2.3.12"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","@types/node":"^20.11.7","aud":"^2.0.4","auto-changelog":"^2.4.0","concat-stream":"^1.6.2","eslint":"=8.8.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.7.4","typescript":"^5.4.0-dev.20240126"},"testling":{"files":"test/*.js"},"keywords":["through","stream","pause","resume"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ljharb/resumer.git"},"homepage":"https://github.com/ljharb/resumer","engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"@ljharb/resumer@0.1.0","gitHead":"62cfc566fddabbaa6daf7153d66c711a798bfc23","bugs":{"url":"https://github.com/ljharb/resumer/issues"},"_nodeVersion":"21.6.0","_npmVersion":"10.2.4","dist":{"shasum":"f043c5010e66d717498bfabf681d52e1176029e4","size":8211,"noattachment":false,"key":"/@ljharb/resumer/-/@ljharb/resumer-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ljharb/resumer/download/@ljharb/resumer-0.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resumer_0.1.0_1706254408007_0.24093211906056355"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-26T07:33:28.238Z","publish_time":1706254408238,"_source_registry_name":"default","_cnpm_publish_time":1706254408238},"0.0.1":{"name":"@ljharb/resumer","version":"0.0.1","description":"a through stream that starts paused and resumes on the next tick","main":"index.js","scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"dependencies":{"@ljharb/through":"^2.3.9"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","aud":"^2.0.3","auto-changelog":"^2.4.0","concat-stream":"^0.1.1","eslint":"=8.8.0","in-publish":"^2.0.1","npmignore":"^0.3.0","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.6.5"},"testling":{"files":"test/*.js"},"keywords":["through","stream","pause","resume"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ljharb/resumer.git"},"homepage":"https://github.com/ljharb/resumer","engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"365b9fe00671efda62fade60ebeed0bf1e80eef0","bugs":{"url":"https://github.com/ljharb/resumer/issues"},"_id":"@ljharb/resumer@0.0.1","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"8a940a9192dd31f6a1df17564bbd26dc6ad3e68d","size":4475,"noattachment":false,"key":"/@ljharb/resumer/-/@ljharb/resumer-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ljharb/resumer/download/@ljharb/resumer-0.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resumer_0.0.1_1689663302017_0.883217471610912"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-18T06:55:02.223Z","publish_time":1689663302223,"_source_registry_name":"default","_cnpm_publish_time":1689663302223}},"readme":"# @ljharb/resumer <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n*Note*: This package is a fork of https://npmjs.com/resumer, and builds off of it.\n\nReturn a through stream that starts out paused and resumes on the next tick, unless somebody called `.pause()`.\n\nThis module has the same signature as [through](https://npmjs.com/package/through).\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n# example\n\n``` js\nvar resumer = require('resumer');\nvar s = createStream();\ns.pipe(process.stdout);\n\nfunction createStream () {\n    var stream = resumer();\n    stream.queue('beep boop\\n');\n    return stream;\n}\n```\n\n```\n$ node example/resume.js\nbeep boop\n```\n\n# methods\n\n``` js\nvar resumer = require('@ljharb/resumer')\n```\n\n## resumer(write, end)\n\nReturn a new through stream from `write` and `end`, which default to pass-through `.queue()` functions if not specified.\n\nThe stream starts out paused and will be resumed on the next tick unless you call `.pause()` first.\n\n`write` and `end` get passed directly through to [through](https://npmjs.com/package/through).\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install @ljharb/resumer\n```\n\n# license\n\nMIT\n\n[package-url]: https://npmjs.org/package/@ljharb/resumer\n[npm-version-svg]: https://versionbadg.es/ljharb/resumer.svg\n[deps-svg]: https://david-dm.org/ljharb/resumer.svg\n[deps-url]: https://david-dm.org/ljharb/resumer\n[dev-deps-svg]: https://david-dm.org/ljharb/resumer/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/resumer#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/@ljharb/resumer.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/@ljharb/resumer.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/@ljharb/resumer.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=@ljharb/resumer\n[codecov-image]: https://codecov.io/gh/ljharb/resumer/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/resumer/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/resumer\n[actions-url]: https://github.com/ljharb/resumer/actions\n","_attachments":{},"homepage":"https://github.com/ljharb/resumer","bugs":{"url":"https://github.com/ljharb/resumer/issues"},"license":"MIT"}