1.0.14 • Published 4 years ago
sql-formatter-handle-space v1.0.14
此npm包是fork了 sql-formatter 但是sql-formatter中部分代码对sql关键字、空格的处理方式不符合大众口味,此包只格式化sql语句 原来此包中的其他三种语言已经被废弃掉,故此包由此产生
NPM 引入
npm install sql-formatter-handle-space --save
在页面中使用 import sqlFormatter frm "sql-formatter-handle-space"
sqlFormatter.format('sql语句')
CDN引入
使用方法
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>husky-header</title>
<link ref="stylesheet" type="text/css" href="//assets.geilicdn.com/bigdata//husky-header/0.0.1/index.css"></link>
</head>
<body>
<!-- html -->
<script src="https://unpkg.com/sql-formatter-handle-space@latest/dist/sql-formatter.umd.js"></script>
</body>
</html>