UNPKG

react-native-parse-html

Version:

WHATWG HTML5 specification-compliant, fast and ready for production HTML parsing/serialization toolset for Node.js

15 lines (10 loc) 369 B
'use strict'; var WritableStream = require('react-native-stream').Writable; var setPrototypeOf = require('../common/setPrototypeOf'); var DevNullStream = module.exports = function () { WritableStream.call(this); }; setPrototypeOf(DevNullStream.prototype, WritableStream.prototype); DevNullStream.prototype._write = function (chunk, encoding, cb) { cb(); };