npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

geosearchcustomer

v1.0.7

Published

Searches customers residing in 100km range of Dublin

Readme

Search Customers Within 100Km Range Of Dublin

This is the Node package that runs on Javascript. In particular it is a package that can be used to get customers/people residing within 100Km range of Dublin.

Installation:

npm i [--save] geosearchcustomer

Import:

const CW100 = require('geosearchcustomer');

Usage:

  • CW100 uses an initialize(pathToFile) function that is promisified.
  • You can either use await new CW100().initialize('your/path/to/file') or new CW100().intitialize('your/path/to/file').then(res => **DO SOMETHING**).
  • Using await is in accordance with the current JS standards.

File Format Requirements

  • The File must be a text file that is with .txt extension.
  • The file must contain JSON objects in a line formatted manner, as shown below.
  • The JSON object will contain properties user_id, latitude, longitude, name.

JSON objects structure and their properties

Output:

The package gives output as shown in the following Image(ASC sorted user id and names) and returns an array of Objects to the callee.

Output of sorted User Ids and Name

[ { latitude: '53.2451022',
    user_id: 4,
    name: 'Ian Kehoe',
    longitude: '-6.238335',
    haversineDistance: 1 },
  { latitude: '53.1302756',
    user_id: 5,
    name: 'Nora Dempsey',
    longitude: '-6.2397222',
    haversineDistance: 2 },
  { latitude: '53.1229599',
    user_id: 6,
    name: 'Theresa Enright',
    longitude: '-6.2705202',
    haversineDistance: 2 },
  { latitude: '54.0894797',
    user_id: 8,
    name: 'Eoin Ahearn',
    longitude: '-6.18671',
    haversineDistance: 20 },
  { latitude: '53.008769',
    user_id: 11,
    name: 'Richard Finnegan',
    longitude: '-6.1056711',
    haversineDistance: 19 },
  { latitude: '52.986375',
    user_id: 12,
    name: 'Christina McArdle',
    longitude: '-6.043701',
    haversineDistance: 29 },
  { latitude: '53',
    user_id: 13,
    name: 'Olive Ahearn',
    longitude: '-7',
    haversineDistance: 95 },
  { latitude: '52.966',
    user_id: 15,
    name: 'Michael Ahearn',
    longitude: '-6.463',
    haversineDistance: 29 },
  { latitude: '54.080556',
    user_id: 23,
    name: 'Eoin Gallagher',
    longitude: '-6.361944',
    haversineDistance: 29 },
  { latitude: '54.133333',
    user_id: 24,
    name: 'Rose Enright',
    longitude: '-6.433333',
    haversineDistance: 52 },
  { latitude: '53.1489345',
    user_id: 31,
    name: 'Alan Behan',
    longitude: '-6.8422408',
    haversineDistance: 42 },
  { latitude: '53.0033946',
    user_id: 39,
    name: 'Lisa Ahearn',
    longitude: '-6.3877505',
    haversineDistance: 17 }
    ]