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 🙏

© 2024 – Pkg Stats / Ryan Hefner

elvis

v2.0.0-1

Published

Generate DOM without templates

Downloads

6

Readme

Elvis

Latest npm version Number of npm downloads Build Status

Elvis is a JavaScript library for creating and building DOM elements programmatically. It does this using native, cross-browser APIs (createElement et al). Elvis works like a template library, except without having to compile templates from strings. DOM generating code must also be valid JavaScript, and it really shines when used with a transpiled language like CoffeeScript. It is inspired by template languages like Jade and HAML.

var el = elvis;

el(document.body, [
  el('nav', el('ul', [
    el('li', el('a(href="/")',     'Home')),
    el('li', el('a(href="/news")', 'News')),
    ...
  ])),
  el('#contents', [
    el('span.my-class', 'Hello, World!')
  ])
]);

Release notes

v1.0.4 (2016-05-10)

  • Update elvis-backbone for better CommonJS support

v1.0.3 (2015-06-01)

  • Restructure project to allow for separate elvis and elvis-backbone modules.

v1.0.0 (2015-05-29)

  • Make elvis npm compatible

v0.3.1 (2014-02-24)

  • Call transform function with proper context
  • Handle number and boolean types equal to string

v0.3.0 (2014-02-03)

  • Add support for setting style attributes directly and with bindings

v0.2.7 (2014-01-06)

  • Add .bindTo to Backbone Views

v0.2.6 (2013-11-11)

  • Fix #10 - Several Internet Explorer 8 issues

v0.2.5

  • Add support for "safe" strings which are not escaped

v0.2.4

  • Flatten out nested arrays passed as child elements

v0.2.3

  • Add support for boolean attributes

v0.2.2

  • Change Backbone.Model API to use .get and .set for the transform registration methods

v0.2.1

  • Add Backbone.Model data-binding plugin
  • Proper handling of value attribute
  • Add event listener function el.on

v0.2.0

  • Add plugin for Backbone.Model support
  • Minor bug fixes

v0.1.1

  • Fix issue with adding child nodes

v0.1.0

  • Initial release

Perform release

  • Update Release notes
  • Bump package.json and bower.json version numbers (also in elvis/ + elvis-backbone/)
  • Run npm run-script build to update all distribution sources
  • git tag -a <tag> with the appropriate version number
  • npm publish in both elvis/ + elvis-backbone/