GithubHelp home page GithubHelp logo

alexxnica / standard-format Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maxogden/standard-format

0.0 0.0 0.0 163 KB

converts your code into Standard JavaScript Format

JavaScript 100.00%

standard-format's Introduction

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 ๐ŸŽ“

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

Elshoff & Marcotty, 1982

standard-format's People

Contributors

0x80 avatar bcomnes avatar dotcypress avatar drewhamlett avatar easyasabc123 avatar feross avatar finnp avatar flet avatar gigafied avatar jb55 avatar joshhartigan avatar kevinsimper avatar kt3k avatar maxogden avatar mmazzarolo avatar mmckegg avatar pdehaan avatar ppvg avatar simenb avatar stephenkubovic avatar teintinu avatar uiur avatar ungoldman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.