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 🙏

© 2025 – Pkg Stats / Ryan Hefner

nuga

v0.0.2

Published

Have a dataset with no delimiters? Does it have defined column widths, though? Turn it into a usable CSV!

Downloads

7

Readme

nuga

Have a dataset with no delimiters? Does it have defined column widths, though? Turn it into a usable CSV!

Why?

I was processing this dataset and wanted a tool to easily reproduce the process for converting the data into a usable format.

Installation

Requirements

Requires node.

Install

npm install -g nuga

Usage

Define a column length spec for your dataset

Let's say you have a dataset with no delimiters. However, you do know where each column begins and ends.

An example dataset might be a two column dataset with columns id and name.

id is 10 characters long and starts at the 1st character in the line and the last character in the column is the 10th character in the line.

name is 100 characters long and starts and 11th character in the line and the last character in the column is the 110th character in the line.

So, our spec CSV would look like this:

field,starts,ends,length
id,1,10,10
name,11,110,100

Nuga is dependent on the starts and ends values being correct.

Generate the CSV

With your dataset spec, run the nuga command. An example:

nuga -i mydataset.txt -o mydatasetasacsv.csv -s mydatasetlengthspec.csv

The -i argument is the dataset you want to convert to CSV.

The -o argument is the file you want the CSV to output to.

The -s argument is the location of your column length spec CSV.

In this example, if all went well, the generated CSV would be in the file mydatasetasacsv.csv.

Todo

  • Add support for looking at the order of the columns in the spec CSV and the length field in lieu of the starts and ends fields.
  • Tests.

License

This program is under the MIT License. See LICENSE for more details.