0.8.0 • Published 5 years ago

my-prettier v0.8.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

MyPrettier

Prettier Standalone for VisionX and Controller

Usage

import format from 'my-prettier';
import * as fs from 'fs';

// vx
const vx = fs.readFileSync('./example.vx', 'utf-8');
const formatVX = format(text, 'vx');

// controller
const ctrl = fs.readFileSync('./example.ts', 'utf-8');
const formatCtrl = format(ctrl, 'ctrl');