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

softio

v2.1.0

Published

The NodeJs library for write/read from terminal.

Downloads

304

Readme

Welcome to Softio! 🚀

Introduction

In the realm of programming, JavaScript has been a cornerstone since its inception by Brendan Eich in 1995. Fast forward to mid-2009, Ryan Dahl revolutionized its usage by introducing Node.js, enabling JavaScript to run outside of the browser.

While JavaScript shines in the browser, it lacks cohesive tools for Input/Output (I/O) operations that are commonplace in many leading programming languages. Node.js, although powerful, presents I/O functionalities in a fragmented manner that can clutter your code.

Enter Softio! 🌟

Our mission with Softio is to streamline console programming in Node.js by centralizing the various I/O modules into a single, elegant package. With Softio, you can enhance your console applications effortlessly—but that’s just the beginning!

Key Features

  • Simplified I/O Handling: Import a single module to manage various console operations, such as reading user input, writing to the console, and handling numbers with ease.
  • Advanced Console Control: Change text and background colors, center output, and even set event listeners for actions like console resizing!
  • All-in-One Package: Reduce the clutter of multiple imports and enhance code readability.

Getting Started

Ready to dive in? Follow these simple steps to get started with Softio:

  1. Install Softio via npm:
npm install softio
  1. Import and Use Softio in Your Application:

Here’s a quick sample to get you started:

const Console = require( 'softio' );

( async function () {
	const name = await Console.In.input( 'Enter your name: ' );
	const age = await Console.In.readNumber( 'Enter your age: ' );

	if ( age < 18 ) {
		Console.Out.write( 'Sorry, your age is under 18 :(' );
		return;
	}

	Console.Out.writeln( Console.Utilities.center( `Welcome ${name}.` ) );
} ) ();

Run this simple program to see Softio in action!

Documentation

For a comprehensive guide to all features and functionalities, please refer to our official documentation.

License

Softio is licensed under the MIT License, allowing you to modify and use it freely.

Contributing

We welcome contributions from the community! If you’d like to help us improve Softio, please check out our contributing guide.


Thank you for checking out Softio! Let’s build amazing console applications together! 🎉