UNPKG

undersign

Version:

Create eIDAS compatible XAdES digital signatures with certificate OCSP responses and timestamps. Works with the Estonian Id-card and Mobile-Id to create BDOCs, but isn't limited to Estonia.

10 lines (8 loc) 255 B
var concatStream = require("concat-stream") exports.slurp = function(stream, encoding) { return new Promise(function(resolve, reject) { if (encoding) stream.setEncoding(encoding) stream.pipe(concatStream(resolve)) stream.on("error", reject) }) }