surge-stream
JavaScript stream library for publishing to surge.sh
Last updated a month ago by sintaxi .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install surge-stream 
SYNC missed versions from official npm registry.

surge-stream

JavaScript stream library for publishing to surge.sh

Used by https://github.com/sintaxi/surge

Publishing files from memory

A project that isn't on disk (held in a database, say) publishes with publishEntries: the same carry, tar, gzip and events as publish, and nothing read from or written to the file system.

var stream = require("surge-stream")({ endpoint: "https://surge.surge.sh" })

stream.publishEntries([
  { name: "index.html", size: 11, content: Buffer.from("<h1>hi</h1>") },
  // content may be a function, called when the file is packed; a sha256
  // the caller already has spares carry from reading it
  { name: "app.js", size: 17, sha256: "…", content: function(){ return load("app.js") } }
], "example.surge.sh", token, { "file-count": "2" })
  .on("info", function(info){ /* published */ })
  .on("fail", function(){ /* not published */ })

Current Tags

  • 0.34.0                                ...           latest (a month ago)

42 Versions

  • 0.34.0                                ...           a month ago
  • 0.33.0                                ...           a month ago
  • 0.32.0                                ...           a month ago
  • 0.31.0                                ...           a month ago
  • 0.30.1                                ...           a month ago
  • 0.30.0                                ...           a month ago
  • 0.29.0                                ...           a month ago
  • 0.28.0                                ...           a month ago
  • 0.27.0                                ...           a month ago
  • 0.26.0                                ...           a month ago
  • 0.25.0                                ...           a month ago
  • 0.24.0                                ...           a month ago
  • 0.23.0                                ...           a month ago
  • 0.22.0                                ...           a month ago
  • 0.21.1                                ...           a month ago
  • 0.21.0                                ...           a month ago
  • 0.20.0                                ...           3 months ago
  • 0.19.0                                ...           3 months ago
  • 0.18.0                                ...           4 months ago
  • 0.17.1                                ...           4 months ago
  • 0.17.0                                ...           4 months ago
  • 0.16.0                                ...           4 months ago
  • 0.15.0                                ...           5 months ago
  • 0.14.0                                ...           5 months ago
  • 0.13.0                                ...           5 months ago
  • 0.11.0                                ...           5 months ago
  • 0.10.4                                ...           5 months ago
  • 0.10.3                                ...           5 months ago
  • 0.10.2                                ...           5 months ago
  • 0.10.1                                ...           9 months ago
  • 0.10.0                                ...           9 months ago
  • 0.9.0                                ...           9 months ago
  • 0.8.0                                ...           9 months ago
  • 0.7.0                                ...           9 months ago
  • 0.6.4                                ...           2 years ago
  • 0.6.3                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.2                                ...           4 years ago
  • 0.5.1                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 133
Today 0
This Week 0
This Month 112
Last Day 0
Last Week 4
Last Month 19
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE