# standard-format

> attempts to reformat javascript to comply with feross/standard style

Latest version **2.2.4** (published 2016-11-23) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install standard-format
pnpm add standard-format
yarn add standard-format
bun add standard-format
```

Provides the command `standard-format`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.4 |
| Published | 2016-11-23 |
| First published | 2015-01-28 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 260 |
| Author | max ogden |
| Maintainers | maxogden, jb55, feross, bret, flet |

## Links

- npm: https://www.npmjs.com/package/standard-format
- Repository: https://github.com/maxogden/standard-format
- Issues: https://github.com/maxogden/standard-format/issues
- npm.io page: https://npm.io/package/standard-format

## Dependencies (11)

- [stdin](https://npm.io/package/stdin.md) 0.0.1
- [deglob](https://npm.io/package/deglob.md) ^1.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.1.0
- [esformatter](https://npm.io/package/esformatter.md) ^0.9.0
- [esformatter-jsx](https://npm.io/package/esformatter-jsx.md) ^7.0.0
- [esformatter-quotes](https://npm.io/package/esformatter-quotes.md) ^1.0.0
- [esformatter-eol-last](https://npm.io/package/esformatter-eol-last.md) ^1.0.0
- [esformatter-semicolon-first](https://npm.io/package/esformatter-semicolon-first.md) ^1.1.0
- [esformatter-literal-notation](https://npm.io/package/esformatter-literal-notation.md) ^1.0.0
- [esformatter-spaced-lined-comment](https://npm.io/package/esformatter-spaced-lined-comment.md) ^2.0.0
- [esformatter-remove-trailing-commas](https://npm.io/package/esformatter-remove-trailing-commas.md) ^1.0.1

## Recent versions

- 2.2.4 (latest) — 2016-11-23
- 2.2.3 — 2016-08-25
- 2.2.2 — 2016-06-24
- 2.2.1 — 2016-05-19
- 2.2.0 — 2016-05-17
- 2.1.1 — 2016-02-23
- 2.1.0 — 2015-11-16
- 2.0.0 — 2015-11-07
- 1.6.10 — 2015-11-07
- 1.6.9 — 2015-10-30
- 1.6.8 — 2015-10-07
- 1.6.7 — 2015-08-27
- 1.6.6 — 2015-08-23
- 1.6.5 — 2015-08-15
- 1.6.4 — 2015-08-12
- … 24 more at https://npm.io/package/standard-format/versions

## README

# standard-format

  [![Build Status](https://travis-ci.org/maxogden/standard-format.svg)](https://travis-ci.org/maxogden/standard-format)
  [![Dependency Status](https://david-dm.org/maxogden/standard-format.svg?style=flat-square)](https://david-dm.org/maxogden/standard-format)

  **experimental** auto formatter for the easier cases in [standard](https://www.npmjs.com/package/standard)

# DEPRECATED

### Use `standard --fix` instead of `standard-format`.

This package is no longer maintained.

`standard` v8.0.0 contains a new `--fix` command line flag to automatically fix
problems. If you need ES2015+ support, consider using `standard --fix` instead
of `standard-format` (this package) which may mangle your ES2015+ code.

`standard --fix` is built into `standard` v8.0.0 for maximum convenience, it
supports ES2015, and it's lightweight (no additional dependencies since it's part
of ESLint which powers `standard`). Lots of problems are already fixable, and more
are getting added with each ESLint release.

`standard` also outputs a message ("Run `standard --fix` to automatically fix
some problems.") when it detects problems that can be fixed automatically so you
can save time!

## Installation

  Install with npm

    $ npm install -g standard-format

## Example Usage

  Output all formatted javascript in a directory and subdirectories to stdout

    $ standard-format

  Format all javascript files, overwriting them into standard format

    $ standard-format -w

  Format javascript over stdin

    $ standard-format < file.js > formatted-file.js

  Format and overwrite specific files

    $ standard-format -w file1.js file2.js

### Development tasks for task runners

- Gulp
    - [gulp-standard-format](https://github.com/Andruj/gulp-standard-format/)
    - [gulp-standard-bundle](https://github.com/ggarciao/gulp-standard-bundle)
- Grunt [grunt-standard](https://github.com/pdehaan/grunt-standard)

### Editor plugins

  - Sublime Text: [sublime-standard-format](https://packagecontrol.io/packages/StandardFormat)
  - Atom: [atom-standard-formatter](https://atom.io/packages/standard-formatter)

### Science :mortar_board:

  > A new step should be added to the modification cycle: modifying the program to make it readable.

  [Elshoff & Marcotty, 1982](http://dl.acm.org/citation.cfm?id=358596)

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