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 🙏

© 2026 – Pkg Stats / Ryan Hefner

reem-coffee

v0.0.1

Published

Compile CoffeeScript files to JavaScript files with Reem

Readme

reem-coffee

Compile CoffeeScript files to JavaScript files with Reem

Installation

npm install reem-coffee # --save for projects

Usage

var coffee = require('reem-coffee');
reem.File.use(coffee([options]));

About

reem-coffee is a plugin for Reem that integrates CoffeeScript files into builds. The plugin is slightly based on metalsmith-coffee, but offers more functionality.

Features

Not only does this plugin compile CoffeeScript files to JavaScript, it also has support for source maps and in place transformation. The source maps will just work if you set the option sourceMap to true. The in-place transformation will overwrite the CoffeeScript file's contents with the new JavaScript; this is by default, but to make seperate CoffeeScript files just set the option preserveSources to true.

It is important to note that this plugin does not write to any file directory. It merely adds to and manipulates the source tree, adding JavaScript and source map files and altering the source CoffeeScript if provisioned to do so. This allows later plugins to do minification and all the other file optimizations if you desire to include them. There are also porperties set on all invloved files that link to each other to allow for easier debugging and checks. The coffeeCompiled boolean is set to true on the orginal CoffeeScript file after compilation, for instance.

Options

To configure this plugin, you may pass your coffee-script compile options object. And reem-coffee includes its own options as well.

filter Function(file Reem.Item) Boolean The filter function takes a Reem Item (list, post, file, page) and returns a Boolean telling this plugin to compile the item if true.

filter Array[String] Provide an array of extensions and the plugin will only compile items with the same extension. The default extensions are [".coffee", ".litcoffee", ".coffee.md"].

rename Function(file Reem.Item) String The rename function takes a Reem Item (list, post, file, page) and returns a String which will be used as the basename for the compiled JavaScript file and source map. The default function returns the basename of the given file.

preserveSources Boolean If set to true, the plugin will make a seperate JavaScript file within the same list of the source CoffeeScript file. Otherwise, the CoffeeScript file is overridden with a new filename/filepath and compiled JavaScript content.

sourceMap Boolean This option is a part of the coffee-script compile options. However, if set to true, this plugin will create the V3 source map in the same list as the orginal CoffeeScript file.

Contributing

If you have an issue or find a bug open an issue and I will see what we can do. If you can fix the bug yourself, by all means send a pull request for consideration.

Until reem and reem-coffee hit v1, I would like to keep backwards compatibility with the v0.0.1, treating it like v1. When the conditions are met for v1, we can cut away the cruft of v0.

# running tests
npm run test
npm run test-spec