Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bendytree/explainjs

A JavaScript library that creates a side-by-side view of your code with your explanations.
https://github.com/bendytree/explainjs

Last synced: about 2 months ago
JSON representation

A JavaScript library that creates a side-by-side view of your code with your explanations.

Awesome Lists containing this project

README

        

# ExplainJS

Generate a side-by-side view of your comments and code. Works on JavaScript files, CSS, and other similar languages.

More info at http://www.explainjs.com

var explainjs = require('explainjs');

var js = '//My Library\n doSomething();';

explainjs(js, function(error, results){
//

My Library


console.log(results.sections[0].comments);

// doSomething();
console.log(results.sections[0].code);
});

Here's how it looks:

![ExplainJS Screenshot](http://www.explainjs.com/static/images/screenshot.jpg)

## Grunt

If you're looking for a [Grunt plugin](http://gruntjs.com) to automate this on your project, checkout [grunt-explainjs](https://github.com/collinforrester/grunt-explainjs).

## License

[MIT License](https://github.com/bendytree/explainjs/blob/master/LICENSE.txt)