{"version":3,"sources":["jsdelivr-header.js","/npm/nan-example-eol@0.1.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,UAAY,QAAQ,4BACpB,GAAK,QAAQ,MACb,aAAe,QAAQ,UAAU,aACjC,KAAO,QAAQ,QAEnB,OAAO,QAAU,CACf,cAAe,SAAS,EAAQ,GAC9B,IAAI,EAAU,IAAI,aAEd,EAAe,IAAI,WAAU,SAAS,GACrC,GAAW,EAAU,EAAI,SAAS,QACvC,IAKA,OAJA,EAAO,GAAG,QAAQ,SAAS,GACzB,EAAa,IAAI,EACnB,IAEO,CACT","file":"/npm/nan-example-eol@0.1.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/nan-example-eol@0.1.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var eolNative = require(\"./build/Release/eol.node\");\nvar fs = require('fs');\nvar EventEmitter = require('events').EventEmitter;\nvar util = require('util');\n\nmodule.exports = {\n  streamWrapper: function(stream, onNewLine) {\n    var emitter = new EventEmitter();\n\n    var nativeFinder = new eolNative(function(buf) {\n      if(onNewLine) onNewLine(buf.toString('utf8'));\n    });\n    stream.on('data', function(data) {\n      nativeFinder.add(data);\n    });\n\n    return emitter;\n  }\n};\n"]}