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

activejade

v1.1.12

Published

ActiveJade is a variant of original Jade(jade-lang.com) project aimed to work properly with MVVM frameworks

Downloads

75

Readme

ActiveJade

activejade.org The main difference with original Jade is that this version is targeted to work in tandem with MVVM framework like AngularJs. The compiler compiles jade template into JS file instead HTML, and you can link this template on your page and use it as a regular AngularJs's template.

What Have Done and What Is In Progress

Done

  1. Tags, Attributes, Text, Expressions
  2. Mixin Declare, Mixin Call
  3. Decorators
  4. Include
  5. IfElse, While, ForIn, CaseWhen
  6. References and promises
  7. Except Statement

In Progress

  1. Extends, Blocks
  2. Filters, IncludeFilters
  3. AngularJs ecosystem integration
  4. Tests: port from original Jade and tests to check proper DOM manipulations

Plans on Future

  1. break and continue statements

Differences Between Original Jade

  1. It's parser and lexer completely rewritten based on Jison
  2. It has extended JavaScript expression syntax (since in is parsing JavaScript as well):
    • array range generator operator .. (i.e. 7..9 => [ 7, 8, 9 ])
    • euclid operator ?. (i.e. a.b?.c => (a.b||{}).c )
    • slicing operator [:] (i.e. [ 1, 2, 3, 4 ][1:2] => [ 2, 3 ])
    • different behavior of var operator
    • may have #element-id to access to element by id:
          div#test-1
          ... some code
          - #test-1.innerHTML = #test-n.innerHTML
          ... some code
          div#test-n
  3. It has decorators(can be applied to tags or mixin calls):
div
    @On('click', a += 1)
    div
        span Test

Or

div
    @On('click', a += 1)
    +awesome-button("green") Press Me
  1. for loop:

    • may have if clause:
      div
      	for k, chbx in checkboxes if chbx.checked
      		span #{k} is checked
    • may have else clause:
      div
      	for v in test
      		a= v
      	else
      		div No Items
  2. Statement operator allowing only var and delete operations (originally was allowed plain JavaScript)

  3. include changes:

    • optional with statement (for isolating scope)
    • source parameter may be an expression (extend will have it too)
  4. for, if, while, case and include statements may have optional except statement:

if test
	div OK
except
	wait
		div The promise is still not resolved!
	error msg
		div Oh! Promise was rejected with message: #{msg}

For include the except statement has different syntax:

include promise
	wait
		div Please wait...

Standard Decorators

  1. @on - to attach event listener to tag element