rashomon
v0.0.3
Published
Split code and text in one line.
Downloads
2
Readme
Rashomon
Cut code in two. Rashomon let you split code to comment and code description in one linear.
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";"}]