title: How to get data from the clipboard in a node script?
body: <p>I'm trying to automate some tests for an app and i need to know the contents of the clipboard to confirm if the click on the &quot;copy to clipboard&quot; button actually worked.</p>
  <p>P.S. Obviously I cant use the Browser Api as this is just a Javascript script. Ideally I'm looking for something like-</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let data = getClipboardData();
  console.log(data);</code></pre>
  </div>
  </div>
  </p>
  <p>I want the getbclipboarddata function.</p>