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

mrjt

v1.0.0

Published

Beardless customizable template engine, Mr. Jt for Node.js and Web browsers.

Downloads

7

Readme

Mr. Jt 🎩

Meet beardless customizable template engine, Mr. Jt for Node.js and Web browsers.

Build status release-src npm License

Build history

jt.use('', ' $Hello %p% {{world}} ')
    .as({ p: 'amazing'})
    .reset().as({ p: 'crazy'})
    // ... +$Hello, +{{world}}
jt.use('s1', 'Today is a {( a < b )} good {/} bad {;} day!')
    .sa(jtif, { a: 5, b: 7})
    .value()

Why Jt ?

Extremely small, fast, and damn customizable. Okay, Let's see what's going on:

Speed 🚀

Only native lower-level implementation. Even for conditional statements, like:

{( d > 5 )} yes {/} no {;}

Which do not uses regex, or eval(), or new Function(), ... Feel the speed.

Size 📦

Extra small size. Just about o-n-e kilobyte of fully workable core engine:

  • ~ 1.02 KB for Core of ES6 gzipped;
  • ~ 1.09 KB for Core of ES3 gzipped;

Same things for custom handlers.

Configurable 🔧

You can configure, add, or change anything!

Jt was designed to be loyal to your preferences on the fly. Maybe for this:

jt.use('s1', 'Good {{p}}, $p -p- !')
    .as({ p: 'Jt' })
    .as({ p: 'Mr.' }, {op: '$'})
    .as({ p: 'morning' }, '{{}}')
    .val(),

Or for this:


// {( true )} yes {/} no {;} -> {if( true )} yes {else} no {endif}
    
jt.use('legacy', '{if( true )} yes {else} no {endif}!')
.sa(new JtIfHandler([ '{}' ],
{
    if: 'if',
    else: 'else',
    fi: 'endif',
}))
.val() // yes !

Or for something more ...

Extensible via Pluginable handlers 🗃

Sure! Add or change any features for the layers, still on the fly.

Do you need something special? No problem, just implement IJtHandler to cover your awesome things. It easy.

Comfy but strong 🌇

Changeable layers through common chain will make you happy.

You can control everything just in a few steps:

jt.use('hello', 'Hello you from $tip, dear $name.')
    .as({ tip: 'Jt', name: 'John' }); // Hello you from Jt, dear John.

// ...

jt.use('hello')
    .as(-1, true)
    .as({ name: 'Denis' }) // Hello you from Jt, dear Denis.
    .reset()
    .as({ tip: 'Moscow' })
    .eject((v) => t.is(v, 'Hello you from Moscow, dear $name.'))
    ...
    .as({ name: '{( r > 100 )}friend{/}visitor{;}' })
    .sa(jtif, { r: actual }) // // Hello you from Moscow, dear friend.
    ...
    .val();
🐧

Stability 🗠

Clean API and its tests will take care of your peace of mind.

Compatibility 🗸

Nothing special, we just provide separate ES3+/ES6+ support in Node.js and Web browsers environment. Choose more suitable package for your case.

No dependencies to something 👐

Developed from scratch without dependencies to something from our end-product.

Open and Free 🍰

Open Source project; MIT License, Yes! Enjoy!

License

Licensed under the MIT License (MIT)

Copyright (c) 2019  Denis Kuzmin < [email protected] > GitHub/3F

[ ☕ Donate ]

API

Download

Build & Tests

npm install
gulp build --conf debug

Available tests can be raised by command:

npm test

We're waiting for your awesome contributions!