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

node-global-tool

v1.1.4

Published

Node tool for global use, also named @cityuderek/node-global-tool

Readme

node-global-tool

Tools developed using Node which is for CLI use.

Tools:

  • check-memory Check memory of node v8
  • test-mysql Test MySQL connection
  • test-pg Test Postgresql connection
  • now now Display current time
  • rand rand Generate random float number
  • rand-int rand-int Generate random integer number
  • CRLF Check or set file if it contains LF/CR/CRLF.

Usage:

check-memory

ngt check-memory

Check memory of node v8 via heapStatistics

Example output

Default max-old-space-size: 4144 MB
{
  "total_heap_size": 17649664,
  "total_heap_size_executable": 524288,
  "total_physical_size": 17649664,
  "total_available_size": 4336030704,
  "used_heap_size": 9011528,
  "heap_size_limit": 4345298944,
  "malloced_memory": 524432,
  "peak_malloced_memory": 1042088,
  "does_zap_garbage": 0,
  "number_of_native_contexts": 2,
  "number_of_detached_contexts": 0,
  "total_global_handles_size": 8192,
  "used_global_handles_size": 2592,
  "external_memory": 2021759
}

test-mysql

Test MySQL connection string.

ngt test-mysql mysql://derek:xxxxxx@localhost/db1

test-pg

Test postgresql connection string. Server must use SSL.

ngt test-pg postgres://postgres:xxxxxxxx@localhost/postgres

now

Show current date and time

ngt now

rand

Generate random float number with min value and max value

minValue <= output < maxValue

ngt rand
ngt rand 1 100

rand-int

Generate random integer number with min value and max value

minValue <= output < maxValue

ngt rand-int
ngt rand-int 1 100

CRLF

Check or set file if it contains LF/CR/CRLF.

Check if it contains LF/CR/CRLF.

ngt crlf fish.txt

Set file as LF.

ngt crlf fish.txt lf

Set file as CR.

ngt setcr fish.txt cr

Set file as CRLF.

ngt crlf fish.txt crlf

Setup

npm install -g node-global-tool

Test

ngt check-memory