UNPKG

accountdown-command

Version:

manage accountdown accounts from the command-line

12 lines (10 loc) 310 B
var http = require('http'); var through = require('through2'); module.exports = function (users) { return http.createServer(function (req, res) { users.list().pipe(through.obj(function (row, enc, next) { this.push(row.key + '\n'); next(); })).pipe(res); }); };