Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 486B

12345678910111213141516171819202122
  1. 'use strict';
  2. var util = require('util')
  3. , stream = require('stream')
  4. , Writable = stream.Writable
  5. , setImmediate = setImmediate || function (fn) { setTimeout(fn, 0) }
  6. ;
  7. module.exports = DevNull;
  8. util.inherits(DevNull, Writable);
  9. function DevNull (opts) {
  10. if (!(this instanceof DevNull)) return new DevNull(opts);
  11. opts = opts || {};
  12. Writable.call(this, opts);
  13. }
  14. DevNull.prototype._write = function (chunk, encoding, cb) {
  15. setImmediate(cb);
  16. }