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

@jobovy/vizier

v1.0.2

Published

Fetch data tables from VizieR in the browser

Downloads

7

Readme

vizier.js

Fetch data tables from VizieR in the browser

npm version jsDelivr Browser tests codecov

Overview

This small javascript package allows you to fetch a table from VizieR asynchronously and process the data table into a dictionary according to the ReadMe.

Author

Jo Bovy (University of Toronto): bovy - at - astro - dot - utoronto - dot - ca

Usage

Only very basic usage is currently implemented. See examples/basic.html for a fully worked basic example. An example of loading a single file that contains both the ReadMe and the data and that is not on the CDS servers is given in examples/onefile.html.

Load the library, e.g., from jsDelivr using

<script src="https://cdn.jsdelivr.net/npm/@jobovy/vizier"></script>

for the latest version or specify the version with (update 1.0.2 to later versions as necessary)

<script src="https://cdn.jsdelivr.net/npm/@jobovy/[email protected]"></script>

This exposes a global variable VizieR that contains the functionality of this package.

Fetch a table by specifying the catalog's name (e.g., 'J/A+A/545/A32'), the specific table within the catalog's name (e.g., 'table4.dat'), and the name of the ReadMe (optional, e.g., 'ReadMe'). This returns a Promise that returns the data dictionary and the header, which you can then process with a then function. For example,

VizieR.fetch('J/A+A/545/A32','table4.dat','ReadMe')
   .then(function (dataAndHeader) {
     let [data,header]= dataAndHeader;
     // do stuff with the data and/or the header!
   });

You can also fetch a table from a general URL, in that case just set the first argument to null. For example,

VizieR.fetch(null,'https://raw.githubusercontent.com/jobovy/sparc-rotation-curves/main/data/MassModels_Lelli2016c.mrt')
   .then(function (dataAndHeader) {
     let [data,header]= dataAndHeader;
     // do stuff with the data and/or the header!
   });

Publishing a new version of this package

Follow the following steps:

  • Update the version in package.json and then run npm install. Commit updated version in package.json and package-lock.json
  • Create a new git tag for this version: git tag vX.X.X
  • Package up for npm: npm pack, check that no extraneous files are included
  • Publish to npm: npm publish --access public
  • Done!