Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
node npm formatter pretty-print css, xml, sql, json
JavaScript
branch: master

upgrade 0.0.2

latest commit 544f7228aa
Redstone Zhao authored
Failed to load latest commit information.
README.md modify readme base on https://github.com/zachofalltrades/jquery.format
index.js upgrade 0.0.2
package.json upgrade 0.0.2
test.js 完成发布

README.md

formattor

node npm formatter pretty-print css, xml, sql, json

Based on jQuery-format by Zach Shelton https://github.com/zachofalltrades/jquery.format

Dual licensed under the MIT and GPL licenses: http://www.opensource.org/licenses/mit-license.php http://www.gnu.org/licenses/gpl.html

Useage

npm install formattor
var formattor = require("formattor");
var sql = "select * form table where id=2";
var options = {method: 'sql'};
sql = formattor(sql, options);
//SELECT *
//FROM table
//WHERE id=2

options

  • method sql, xml, json, css
Something went wrong with that request. Please try again.