JSPM

  • Created
  • Published
  • Downloads 3548
  • Score
    100M100P100Q109460F
  • License BSD

attempts to reformat javascript to comply with feross/standard style

Package Exports

  • standard-format

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (standard-format) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

standard-format

experimental auto formatter for the easier cases in standard

NPM

try it out

$ npm install standard-format -g
$ standard-format

currently converts this:

function() {}
function () {}
function  () {}


function f() {}
function f () {}
function   foo() {}
function   foo () {}
function   foo   () {}


function(){}
function (){}
function () {}
function ()  {}


function(){}
function foo(){}
function foo() {}
function foo()  {}


function(){}
function foo (){}
function foo ()  {}

into this:

function () {}
function () {}
function () {}
function f () {}
function f () {}
function foo () {}
function foo () {}
function foo () {}

function () {}
function () {}
function () {}
function () {}

function () {}
function foo () {}
function foo () {}
function foo () {}

function () {}
function foo () {}
function foo () {}