aligner-javascript
Javascript support for aligner
adrianlee44 60,229 49 1.3.0 MIT GitHub

aligner-javascript

Aligner add-on to support Javascript.

Supported character / operator

=: assignment

let foo   = "bar"
let test  = "notest"
let hello = "world"

+=, -= and other with =

let foo    = "bar"
let test  += "notest"
let hello -= "world"

:: Object

random = {
  troll: "internet",
  foo:   "bar",
  bar:   "beer"
}

,: Items in arrays

["helloText", 123456, "world"]
["foo"      ,  32124, "bar"]

from:

import * from 'fs';
import * from 'https';

Comments (if Align Comments options on)

let hello = 'world'; // line 1
let foo   = 'bar';   // line 2

Installation

Aligner must be installed along with this package. For more information, please check out Aligner

Changelog

  • 2017-08-02   v1.3.0   Add support for JSON
  • 2017-07-06   v1.2.0   Add support for inline Javascript
  • 2017-05-13   v1.1.0   Update README
  • 2016-07-21   v1.0.0   Initial release