SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { Readable } = require('stream');
  2.  
  3. export function string2stream(string) {
  4.   const reader = new Readable();
  5.   reader.push(string);
  6.   reader.push(null);
  7.   return reader;
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top