Skip to content

timakin/rashomon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Split your code and text in one line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published