0.0.3 • Published 9 years ago

rashomon v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

Rashomon

Cut code in two. Rashomon let you split code to comment and code description in one linear. 978590B696E581I8CB489E6.jpg

Dependencies

  • line-reader(^0.2.4)

Installation

npm install rashomon

How to use

Prepare the target code you'd split. (In this introduction, we use following test.js)

// this is comment
var Say = "YoHo";

Then, you can save comment and code separetely with Rashomon library.

var path     = require('path');
var Rashomon = require('rashomon');
var target   = path.join(__dirname, './test.js');
var result   = Rashomon.parseCode(target);

console.log(result);
// [{"docsText":"this is comment", "codeText": "var Say = "YoHo";"}]
0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago