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

simp.compiler

v1.0.3

Published

A JavaScript compiler that makes ES5 easier.

Downloads

6

Readme

Simp

Simp is a JavaScript compiler that aims to simplify the language and add a few utilities.

Installation

npm install simp.compiler

Compiling Simp code

const simp = require('simp');

// To compile Simp code, use the compile() function.
console.log(simp.compile(`
let test = 0

func increment(int) {
    def int: 0
    ret int++;
}

test = increment(test);
`));

Compiled output:

var test = 0

function increment(int) {
    if (!int) int = 0
    return int++;
}

test = increment(test);

Features

Those are the features of the Simp compiler.

Aliases

Simp adds a few aliases to your usual JS code, to make coding faster.

Before | After | Description --- | --- | --- let | var | backported from ES6 func | function | - ret | return | for non-void returns ret. | return | for void returns

Loop shortcuts

If you want to quickly create a loop without all of those pesky semicolons, Simp is gonna help you out.

Before | After | Description --- | --- | --- index: min..max | var index = min; index < max; index++ | Forward loop index: min..<max | var index = max - 1; index >= min; index-- | Backwards loop

Arrow functions

A backport of the ES6 feature, but with a Java style arrow.

Before | After --- | --- (args) -> { /* function */ } | function(args) { /* function */ }

Random shorthands

When you want to generate a random number, or execute something with a specific chance, Simp has shorthands that can help out.

Before | After --- | --- ? min-max | min + Math.random() * (max - min) ? chance% | Math.random() * 100 < chance

Function utilities

Just some function utilities, to make your code more beautiful.

Before | After | Description --- | --- | --- def var: val | if (!var) var = val | Default value, a less complex backport of an ES6 feature object::getter | object.get('getter') | Useful when embedding JS into apps