A language that compiles to JavaScript
Last updated 8 years ago .
Repository · Original npm · Tarball · package.json
$ cnpm install Cap 
SYNC missed versions from official npm registry.


A language that compiles to JavaScript, for use in the browser and node.


Cap is a language built on top of Javascript. It aims to unify the underlying concepts of functional programming with an elegant and succint syntax.


The Cap compiler is implemented in node, get that first (pre-compiled binaries available for Win/Mac, Linux you have to build yourself). Node comes with the package manager npm which you can use to install the Cap compiler.


npm install cap -g

Provided you used the global flag -g and the path /usr/local/bin is in your path, capc should now be available. Verify by running capc -h which should print something similar to the following:

Usage: capc [options] [source-file]


  -h, --help       output usage information
  -V, --version    output the version number
  -p, --printtree  print the syntax tree instead of compiling

Editor Syntax

There is a syntax mode for Textmate and SublimeText 2. It is located in editor/Cap.tmLanguage.

Current Tags

  • 0.0.2                                ...           latest (8 years ago)

2 Versions

  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2017 © |