rashomon

0.0.3 • Public • Published

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";"}]

Readme

Keywords

Package Sidebar

Install

npm i rashomon

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • timakin