codements
Node.js/JavaScript library to align code & comments.
Installation
Basic: npm install codements
As Dependency: npm install codements --save
Require in Node: var codements = require('codements');
What is this even useful for?
It's useful for generation of human-readable code. I personally use it in this Dota 2 Autoexec Generator.
codements.SplitView
Creates this type of codement:
var lineOfCode = true; // boolean variable { // I know you don't actually like writing unit-tests return 'nope'; // neither do I} // I wonder if anybody does // comment overflowab = ba; // swapping pointless variables in ES6
Example
var codements = ; var parser = ;parser;parser;parser; console;