Socket
Socket
Sign inDemoInstall

formattor

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    formattor

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


Version published
Weekly downloads
2.2K
decreased by-16.62%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 28 Apr 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc