title: Calling Node.js from AppleScript or JXA
body: <p>I need a very simple example to call my local installed node.js and all the installed modules from AppleScript or JXA (JavaScript Application Scripting). </p>
  
  <p>I tried in JXA:</p>
  
  <pre><code> var app = Application.currentApplication()
   app.includeStandardAdditions = true
  
   const request = require('request-promise');
   const cheerio = require('cheerio');
  
   const URL = 'https://www.example.com';
  
   (async () =&gt; {
  
   const response = await request({...
  </code></pre>
  
  <p>Maybe it's easier in Applescript. But how can I call all this in AppleScript?</p>
  
  <p>Thanks for an easy example and your help!</p>