Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Latest commit

 

History

History
16 lines (13 loc) · 350 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 350 Bytes

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');