standard-format

attempts to reformat javascript to comply with feross/standard style

standard-format is deprecated in favor of a built-in autofixer in 'standard'. Usage: standard --fix
Last updated 9 years ago by feross .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ npm install standard-format 
SYNC missed versions from official npm registry.

standard-format

Build Status Dependency Status

experimental auto formatter for the easier cases in 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

Editor plugins

Science :mortar_board:

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

Elshoff & Marcotty, 1982

Current Tags

  • 2.2.4                                ...           latest (8 years ago)

39 Versions

  • 2.2.4                                ...           8 years ago
  • 2.2.3 [deprecated]           ...           8 years ago
  • 2.2.2 [deprecated]           ...           9 years ago
  • 2.2.1 [deprecated]           ...           9 years ago
  • 2.2.0 [deprecated]           ...           9 years ago
  • 2.1.1 [deprecated]           ...           9 years ago
  • 2.1.0 [deprecated]           ...           9 years ago
  • 2.0.0 [deprecated]           ...           9 years ago
  • 1.6.10 [deprecated]           ...           9 years ago
  • 1.6.9 [deprecated]           ...           9 years ago
  • 1.6.8 [deprecated]           ...           9 years ago
  • 1.6.7 [deprecated]           ...           9 years ago
  • 1.6.6 [deprecated]           ...           9 years ago
  • 1.6.5 [deprecated]           ...           9 years ago
  • 1.6.4 [deprecated]           ...           9 years ago
  • 1.6.3 [deprecated]           ...           9 years ago
  • 1.6.2 [deprecated]           ...           9 years ago
  • 1.6.1 [deprecated]           ...           9 years ago
  • 1.6.0 [deprecated]           ...           9 years ago
  • 1.5.0 [deprecated]           ...           9 years ago
  • 1.4.0 [deprecated]           ...           9 years ago
  • 1.3.10 [deprecated]           ...           9 years ago
  • 1.3.9 [deprecated]           ...           10 years ago
  • 1.3.8 [deprecated]           ...           10 years ago
  • 1.3.7 [deprecated]           ...           10 years ago
  • 1.3.6 [deprecated]           ...           10 years ago
  • 1.3.5 [deprecated]           ...           10 years ago
  • 1.3.4 [deprecated]           ...           10 years ago
  • 1.3.3 [deprecated]           ...           10 years ago
  • 1.3.2 [deprecated]           ...           10 years ago
  • 1.3.1 [deprecated]           ...           10 years ago
  • 1.3.0 [deprecated]           ...           10 years ago
  • 1.2.3 [deprecated]           ...           10 years ago
  • 1.2.2 [deprecated]           ...           10 years ago
  • 1.2.1 [deprecated]           ...           10 years ago
  • 1.2.0 [deprecated]           ...           10 years ago
  • 1.1.1 [deprecated]           ...           10 years ago
  • 1.1.0 [deprecated]           ...           10 years ago
  • 1.0.0 [deprecated]           ...           10 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (9)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE