# formattor

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

Latest version **0.0.2** (published 2013-04-28) · 0 weekly downloads

## Install

```sh
npm install formattor
pnpm add formattor
yarn add formattor
bun add formattor
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2013-04-28 |
| First published | 2013-04-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Redstone Zhao |
| Maintainers | stonephp |
| Keywords | pretty, sql, format, printf, xml, json, css |

## Links

- npm: https://www.npmjs.com/package/formattor
- Repository: https://github.com/stonephp/formattor
- Issues: https://github.com/stonephp/formattor/issues
- npm.io page: https://npm.io/package/formattor

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.2 (latest) — 2013-04-28
- 0.0.1 — 2013-04-28

## README

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

<pre>npm install formattor</pre>
<pre>
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
</pre>

## options
  * method `sql`, `xml`, `json`, `css`

---
_Source: https://npm.io/package/formattor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
