1.0.1 • Published 7 years ago

vue2js v1.0.1

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

.vue to .js

A tool for Compile .vue file to .js file.

The .vue means use .vue Spec file.

*.vue file consists of three types of top-level language blocks: <template>, <script> and <style>.

Install

$ npm i vue2js -g

Usage

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