title: How to use npm modules in browser? is possible to use them even in local (PC)?
body: <p>I'm new to <code>npm module</code> and node.js so it is really difficult to me.</p>
  <p>I have a js code whit many points and for each one of them I want to get the nearest city.</p>
  <p>To do this, in other question (<a href="https://stackoverflow.com/questions/49494643/reverse-geocoding-with-big-array-is-fastest-way-javascript-and-performance/49542182?noredirect=1#comment86123448_49542182">Reverse geocoding with big array is fastest way? - javascript and performance</a>), a user suggested me to use two <strong>npm modules</strong>,</p>
  <pre><code>const kdbush = require('kdbush');
  const geokdbush = require('geokdbush');
  
  // I've stored the data points as objects to make the values unambiguous
  const cities = [
    { name: &quot;Abano Terme (PD)&quot;, latitude: 45.3594, longitude: 11.7894 },
    { name: &quot;Abbadia Cerreto (LO)&quot;, latitude: 45.3122, longitude: 9.5928 },
    { name: &quot;Abbadia Lariana (LC)&quot;, latitude: 45.8992, longitude: 9.3336 },
    { name: &quot;Abbadia San Salvatore (SI)&quot;, latitude: 42.8800, longitude: 11.6775 },
    { name: &quot;Abbasanta (OR)&quot;, latitude: 40.1250, longitude: 8.8200 }
  ];
  
  // Create the index over city data ONCE
  const index = kdbush(cities, ({ longitude }) =&gt; longitude, ({ latitude }) =&gt; latitude);
  
  // Get the nearest neighbour in a radius of 50km for a point with latitude 43.7051 and longitude 11.4363
  const nearest = geokdbush.around(index, 11.4363, 43.7051, 1, 50);
  </code></pre>
  <p>The problem is this is the first time that I approach at this. Besides I'm Italian and don't speak English very well, and in Italian Google there's nothing.</p>
  <p>Can you tell me how could I use these modules?</p>
  <p>Do I have to install <code>Node.js</code> on my server?</p>
  <p>Is it possible to use modules on local PC?</p>