Socket
Book a DemoInstallSign in
Socket

formattor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formattor

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

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
1.6K
-25.37%
Maintainers
1
Weekly downloads
 
Created
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

pretty

FAQs

Package last updated on 28 Apr 2013

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.