title: How to use @graphy npm package in angular application?
body: <p>I need to use lib to parse RDF on the browser side. I am trying to use Graphy <a href="https://github.com/blake-regalia/graphy.js" rel="nofollow noreferrer">https://github.com/blake-regalia/graphy.js</a> as it seems to have promising benchmarks. However, I have no idea how to use it in Angular. Author claims that it should fine with Webpack, but it seams that is not that straightforward (to me at least) as with other NPM libs.</p>
  <p>What I did:</p>
  <pre><code> npm install --save graphy
  </code></pre>
  <p>and</p>
  <pre><code>import ttlReader from '@graphy/content.ttl.read';
  ....
      const reader = ttlReader();
      reader.read(graphContent);
      reader.on('data', console.log);
  </code></pre>
  <p>But that ends with</p>
  <pre><code>Uncaught ReferenceError: global is not defined
      js index.js:43
      Webpack 20
          __webpack_require__
          js
          __webpack_require__
          js
          __webpack_require__
          node_modules
          __webpack_require__
          ts
          __webpack_require__
          ts
          __webpack_require__
          ts
          __webpack_require__
          ts
          __webpack_require__
          0
          __webpack_require__
          checkDeferredModules
          webpackJsonpCallback
          &lt;anonymous&gt;
  </code></pre>
  <p>How can I use that library in Angular?</p>