Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including compiless with all npm packages installed. Try it out:

var compiless = require("compiless")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

compiless v1.0.1

Compile LESS files throughout a directory tree


Build Status NPM version

Compiles LESS files throughout a directory tree and exports them to a specific directory.


Install the package

$ npm install compiless

Then in some file that is called upon app start (should only be called once):

require("compiless")(__dirname, {
  "./src/less": "./public/css"

This will take any LESS files from the src/less directory, compile them, and export them to the public/css directory. So that they can be statically served.

Important notes

  • Found directories will be recursively searched.
  • If a directory does not exist, it will be created.
  • Previous files at a path WILL be overwritten

Running tests

Clone this repo

$ git clone

Install all of the dependencies

$ npm install

Run the tests

$ npm test
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free