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

@moreavy/simple-csv-tools

v1.2.1

Published

Simple API to work on CSV spreadsheets

Readme

simple-csv-tools

Test License: AGPL v3

simple-csv-tools is a simple API to work on CSV spreadsheets.

Usage

When you import simple-scv-tools, you'll be reported with a class. The class provides the API for working on your spreadsheet.

const Spreadsheet = require("simple-csv-tools");
var sheet = new Spreadsheet(path: string, stringsOnly: boolean);

The path parameter is for the the spreadsheet's (.csv file format) file path. simple-csv-tools supports numbers. The stringsOnly parameter (false by default) is a boolean to ask whether the data should be returned only in the string format. If stringsOnly is set to true, numerical values will be returned in the string format.

Methods

  1. toStr(): Returns the string of the spreadsheet in the CSV format.
  2. toArr(): Returns an array containing the same data in the spreadsheet (JSON format)
  3. writeJSON(...paths: string[]): Converts CSV to JSON and writes files to the paths given in the parameters.
  4. parse(arr: array): Ovverides the spreadsheets to the given data in JSON form from the arr parameter.
  5. sortColumns(fisrtlineisheaders: boolean, headers: array): Sorts data in the spreadhseet by it's columns and returns the sorted data. The fisrtlineisheaders and sortNumericalRows is set to true by default. You need to give the headers parameter only if fisrtlineisheaders is set to false. This method will return the array of all the columns in the spreadsheet in the Column format.

Methods Of Columns

  1. sortedData(): Returns the data of the column sorted using serial numbers (from up to down).
  2. srNo(element: string/number): Returns the serial number of the element in the column. Will return 0 if the element is not found.
  3. getElementBySrNo(srNo: number): Returns the element given of the perticular serial number in the srNo parameter.
  4. includes(element:string/number): Returns true or false whether the column contains the perticular value in the element parameter.