自动格式化和美化代码。支持多种编程语言,集成 Prettier/ESLint 等格式化工具。
code format
js/html/css/json/xml/sql
import formatter from 'code-formatter';
const content = `{"name":"ilex","identifier":"ac1bf435","_test":{"say":"hello","run":"fast"}}`;
const result = formatter(content, {
method: 'json'
});
// 显示
<textarea value={result} />
' ' 2 spacesapplies to cssmin and xmlmin functions\tilex.h
MIT
# 安装到当前项目
npx skills add code-formatter
# 全局安装
npx skills add code-formatter -g
ilex.hcode-formatter
评论区
该文章暂未开放评论功能。