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

latte

v0.4.1

Published

JavaScript, with a little milk and sugar

Readme

latte-js

JavaScript, with a little milk & sugar

Latte is an extension of JavaScript, bringing features of CoffeeScript in a familiar JS syntax.

If you like CoffeeScript, but not the Rubyish syntax, Latte is for you.

http://lattejs.com

Get Started

Install

npm install -g latte

or

npm install --save-dev latte

Usage

$ latte --help
Latte.js compiler.
Usage: latte [options] [--] files...

Options:
  -c, --compile  Compile input files. If not specified, evaluates the files.
  -o, --output   Output directory, to be used with --compile.
  --version      Show version

Try the REPL

$ latte
> [1,2,3].map(x => x * x)
[ 1, 4, 9 ]

Compile a directory of .latte files

latte -o lib/ -c src/

Generate (inline) source maps too

latte -o lib/ -c src/ -m

The Language

See the proper documentation at http://lattejs.com

ES6 Features

  • Arrow functions
  • Generators
  • Iterators
  • Destructuring assignment
  • Template strings
  • Block-scoped variables ('let' statement)
  • For-of statement
  • Rest params
  • Array spreads

Latte JS Features

  • Monad syntax (similar to Haskell) for flattening async control flow
  • Array comprehensions
  • Declare variables in array comprehensions (more functional programming goodness)
  • Filter with 'if' in for-of/for-in statements

Changes

0.4.1

  • Registered .latte extension with Node.js, so .latte modules can be required (#15)
  • Removed git:// dependencies

0.4.0

  • Changed iterators & generators to reflect latest ES6 spec (no more StopIteration).
  • Added benchmarks (just for generators, initially).
  • Optimised generators for tail call emulation use case - performance is comparable to trampoline.
  • Monads now implemented via generators - reusing control flow logic, and to allow use of native generators implementation where available (this will be a command line flag later on).
  • Monads now properly support return statement (fixes #9).
  • Added support for array spreads (via https://github.com/square/es6-spread).
  • Added support for rest params (via https://github.com/thomasboyt/es6-rest-params).
  • Added support for generating source maps (via https://github.com/benjamn/recast).

0.3.5

  • Allow monad binds in for loops.
  • Allow monad binds in test/update expressions in all supported control structures.

0.3.4

  • Fixed break and continue in monad blocks.
  • Fixed issue with monadic binds in a multiple-var-decl statement resulting in undefined references.

0.3.3

Fixed issue with using functions as part of a monad bind.

0.3.2

Various fixes.

0.3.1

  • Support for monads.
  • Initial support for ES6 generators.
  • For-of statement.

0.2.7

Array comprehension improvement

0.2.6

Clear module cache when evaluating script in-process

0.2.5

  • Array comprehension with variables
  • Set __dirname properly when evaluating script in-process

0.2.4

  • Array comprehensions
  • Command line improvements
  • For-in-if statement: for (x in y if (x.is('awesome')))

0.2.3

  • Array destructuring
  • Let statement
  • Support for more AST nodes (stops the noisy output)

0.2.2

Basic quasi-literals support

0.2.1

Node 0.8 compatibility

0.2.0

Grunt task

0.1.0

Unix fixes

0.0.2

Initial release, arrow functions