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 aspax-ls-handler with all npm packages installed. Try it out:

var aspaxLsHandler = require("aspax-ls-handler")

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

aspax-ls-handler v1.0.2

Plugin enabling ASPAX to handle LiveScript files.

What's this?

NPM version Dependency Status License Downloads

A plugin that enables ASPAX to handle LiveScript files.

Installation

Type this in the folder where you're running ASPAX:

npm install aspax-ls-handler

If you're running ASPAX in a Node.js application root folder, consider using the --save-dev option to avoid deploying this plugin to your production environment:

npm install aspax-ls-handler --save-dev

Usage

Simply add .ls source files in aspax.yml:

app.js:
  - lib.js
  - script-1.ls|bare
  - script-2.ls

Available flags

  • bare: compile without the top-level function safety wrapper - see more here.

    Basically, this:

      $ !-> console.log \hi!
    

    ...compiles to this with the bare flag:

      $(function() {
        return console.log('hi!');
      });
    

    ...and to this without the flag:

      (function() {
        $(function() {
          return console.log('hi!');
        });
      }).call(this);
    

Endorsing the author

If you find this piece of software useful, please tweet about ASPAX and endorse me on LinkedIn:

Ionut-Cristian Florescu on LinkedIn

Metadata

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