node-xml icon indicating copy to clipboard operation
node-xml copied to clipboard

Dependency on Stream Library

Open Scuilion opened this issue 7 years ago • 2 comments

The package claims that is needs no depenencies: https://www.npmjs.com/package/xml

But I believe it rely on on Stream https://www.npmjs.com/package/xml

Scuilion avatar Jul 23 '18 18:07 Scuilion

@Scuilion that's probably because this is intended for use in Node projects and stream is a builtin Node API: https://nodejs.org/api/stream.html

If you need to use this in a browser/React Native environment it should be possible to shim the stream library using something like this: https://github.com/substack/stream-browserify

See also: https://github.com/webpack/node-libs-browser

eqyiel avatar Aug 03 '18 23:08 eqyiel

@eqyiel You're a 100% right. I was using this in a browser. Thanks for the response!

Scuilion avatar Aug 04 '18 00:08 Scuilion