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

flame-template

v1.2.5

Published

Flame Templating Language

Downloads

24

Readme

Flametemplate

Flame Template is a Template Engine that removes complexity from Template Engines and make it more user friendly.

To make it the Template Engine more accessible features were limited to just the basics so you could get started.

To create a Renderer use the FlameManager Class. This allows you to saved what is the base dir that the templates will be searched.

Installation

    npm install flame-template

Usage

  //es6
  import FlameManager from "flame-template";

  //commonjs
  var FlameManager = require("flame-template").FlameManager;

  var f = new FlameManager({d:"./views"});

  //This can be used as promise
  f.render("mytemplate.html",{...}).then(function(result){
    res.send(result);
  });

  //This can be used async with babel compiler/es7
  var result = await f.render("mytemplate.html",{...})
  res.send(result);

Templating

If

    //This syntax is going to change to <$if $age>
    <$if age>
      This will only render if {age:value} was passed in.
    </>

else if

    //Syntax will change <$if $age <10>
    <$if age < 10>
    <div>my age is $age</div>

    //Syntax will change <$else if $age > 10 />
    <$else if age > 10/> //Close bracket is needed

    <div> I am a big person of age $age</div>
    </> //Triggers the end of the if else statement

else

    //Syntax will change <$if $age <10>
    <$if age < 10>
    <div>my age is $age</div>

    //Syntax will change <$else if $age > 10 />
    <$else/> //Close bracket is needed

    <div> I am a big person of age $age</div>
    </> //Triggers the end of the if else statement

for

    //Syntax might change <ul $for $place of $places>
    <ul $for place of places>
      <li>$place</li>
    </ul>

Expression

    //useful when need to check something
    <div class="$expression{ $name.length>1? 'many':'one' }" />

Displaying text

displaying text is dead simple. Just call $ and the name of the variable. You can drill down as well.

    $person.name.last.