{"name":"surge-stream","version":"0.26.0","author":{"name":"Brock Whitten","email":"brock@chloi.io"},"license":"ISC","_id":"surge-stream@0.26.0","maintainers":[{"name":"sintaxi","email":"brock@sintaxi.com"}],"homepage":"https://github.com/sintaxi/surge-sdk#readme","bugs":{"url":"https://github.com/sintaxi/surge-sdk/issues"},"dist":{"shasum":"5e857e9d1a0f1485dce90d3757b1d465147a2025","tarball":"http://registry-npm.ywwl.com/surge-stream/download/surge-stream-0.26.0.tgz","fileCount":6,"integrity":"sha512-oHRrKk/JOBvYOcxOfUYoTdUQCUXomjJI9RxF+OcGH3DALI05lbXw3Ws3PKsKMnApfmYp7idYVZvOCfdkFWNsjQ==","signatures":[{"sig":"MEQCIAKSPsROXupilMIdbMnOoTamgNsPE7xq/Xv6VeYRqP6UAiAC9BXCU+FQRvZRgY0KLKrglFBXQIbSAOIpQqV2lzWtpA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGR6MJCSD0xqC9ewJvctEOTTvrYnIkujsWhxy8MBhifzAiEA2R2clhEeH17LptFj8CpuzzWA3VPNHj2ZEUxr9t3pkK4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32935,"size":11513,"noattachment":false,"key":"/surge-stream/-/surge-stream-0.26.0.tgz"},"main":"lib/stream.js","engines":{"node":">=18.13"},"gitHead":"0897f9c91d0a1cd9e6aa2a31ea8e4f3e0594d7dd","_npmUser":{"name":"sintaxi","email":"brock@sintaxi.com"},"repository":{"url":"git+https://github.com/sintaxi/surge-sdk.git","type":"git"},"_npmVersion":"10.9.8","description":"JavaScript stream library for publishing to surge.sh","directories":{},"_nodeVersion":"22.23.2","dependencies":{"split":"1.0.1","ignore":"7.0.5","surge-ignore":"0.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/surge-stream_0.26.0_1792901402087_0.5357785103876691","host":"s3://npm-registry-packages-npm-production"},"readme":"# surge-stream\n\n> JavaScript stream library for publishing to surge.sh\n\nUsed by https://github.com/sintaxi/surge\n\n## Publishing files from memory\n\nA project that isn't on disk (held in a database, say) publishes with\n`publishEntries`: the same carry, tar, gzip and events as `publish`, and\nnothing read from or written to the file system.\n\n```js\nvar stream = require(\"surge-stream\")({ endpoint: \"https://surge.surge.sh\" })\n\nstream.publishEntries([\n  { name: \"index.html\", size: 11, content: Buffer.from(\"<h1>hi</h1>\") },\n  // content may be a function, called when the file is packed; a sha256\n  // the caller already has spares carry from reading it\n  { name: \"app.js\", size: 17, sha256: \"…\", content: function(){ return load(\"app.js\") } }\n], \"example.surge.sh\", token, { \"file-count\": \"2\" })\n  .on(\"info\", function(info){ /* published */ })\n  .on(\"fail\", function(){ /* not published */ })\n```\n","publish_time":1792901402203,"_cnpm_publish_time":1792901402203,"dist-tags":{"latest":"0.34.0"}}