1.0.1 • Published 9 years ago
vue2js v1.0.1
.vue to .js
A tool for Compile .vue file to .js file.
The .vue means use .vue Spec file.
*.vuefile consists of three types of top-level language blocks:<template>,<script>and<style>.
Install
$ npm i vue2js -gUsage
You can use it as command line tool or scripting with it.
Shell
$ vue2js
Usage: vue2js <filename>Scripting
const vue2js = require('vue2js');
var content = fs.readFileSync('*.vue', 'utf8');
console.log(vue2js(content));License
The MIT license