{"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":{"integrity":"sha512-YJ0uFzYPrf4vkBX4P3jN9LXZoNLILe5kehOd8JK3MdkpZG27nE0mokvwR0Zk5NBIDwJH7EtsReWkn/GEvGA2tw==","shasum":"ad4b0190debd914a2499d105229575b8460e8a83","tarball":"http://registry-npm.ywwl.com/@ljharb/resumer/download/@ljharb/resumer-0.1.1.tgz","fileCount":13,"unpackedSize":23066,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDM8hxQ8TbhbsXSbAU5XAXRan6oM0+5K8GxpIcjgqN/QgIgG+Nm/pr645aY9oMNA2/Sxk00FumsLOTF99N61c3qQzE="}],"size":8345,"noattachment":false,"key":"/@ljharb/resumer/-/@ljharb/resumer-0.1.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resumer_0.1.1_1706314255203_0.7812254289746836"},"_hasShrinkwrap":false,"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","publish_time":1706314255436,"_cnpm_publish_time":1706314255436,"dist-tags":{"latest":"0.1.3"}}