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

simplefsm

v1.5.1-deprecated

Published

a new and fast javascript framework / library.

Readme

simple.js

a fast javascript framework / library.

NOTE: Project is now deprecated. No longer going to be get updates.

Table of contents.

Quick Start

In Terminal or Command Prompt enter this in.

mkdir Project
cd Project
npm install simplefsm

That installs simple.js to your project! You're all done.

Documentation

Building or Compiling

Building Addons

Download the latest version of simple.js here

In Terminal or Command Prompt, type this in...

cd /path/to/simplejs; unzip simple.js-master.zip
cd simple.js-master; cd lib
node-gyp configure build # install it with npm install -g node-gyp

Modules

Module information.

console.js

Print something out to the console.

var newconsole = require('simplefsm').console;

newconsole.send('Hello World!'); // doesn't add new line.
newconsole.sendl('Hello World!'); // adds new line automatically.

electron.js

Create a window with electron.

var lib = require('simplefsm').electron;
var app = require('electron').app;

app.on('ready', () => {
  // creates window with index.html
  // 500 by 500.
  lib.create(path.join(__dirname, 'index.html'), 500, 500);
});

fstream.js

Manage files.

var fs = require('simplefsm').fs;

// checks to see if file hello.txt exists
if (fs.exists('hello.txt')) {
  fs.remove('hello.txt'); // if it already exists delete it.
} else {
  fs.create('hello.txt') // if it doesn't create it.
  fs.write('hello.txt', 'Hello World!'); // adds 'Hello World!' to hello.txt
}

fun.js

Colorize words

var colors = require('colors');
var fun = require('simplefsm').fun;

var newconsole = require('simplefsm').console;

newconsole.sendl('hello'.red); // nifty way. colors needs to required.

newconsole.sendl(colors.red('hello')); // not nifty way.
newconsole.sendl(fun.colorize('red', 'hello')); // not nifty way.

os.js

Get home path. (uses C++)

var os = require('simplefsm').os;
var newconsole = require('simplefsm').console;

newconsole.sendl(os.getHome()); // gets home path ands prints it out to console.
newconsole.sendl(os.getUserName()); // gets user name ands prints it out to console.
newconsole.sendl(os.getEnvironmentVar("PATH")); // gets environment variable "PATH" and prints it out to console.

server.js

Create a server.

var server = require('simplefsm').server;
var newconsole = require('simplefsm').console;

newconsole.sendl('Starting server...');

newconsole.create(8080, '<p>Hello World!</p>'); // creates server (c++) VERY BUGGY
newconsole.createjs(8080, '<p>Hello World!</p>'); // creates server (express)

util.js

...

Built with

Contributing

Credits

Collaborators

Contributors

...

License

simple.js is licensed under the MIT license. Read LICENSE.txt for more information.