next-format
Advanced tools
Comparing version 0.0.15 to 0.0.17
{ | ||
"name": "next-format", | ||
"version": "0.0.15", | ||
"version": "0.0.17", | ||
"description": "Opinionated es-next formatter inspired by golang fmt.", | ||
@@ -8,3 +8,3 @@ "homepage": "https://github.com/pre63/next-format", | ||
"author": { | ||
"name": "Simon Deshaies (pre63)" | ||
"name": "pre63" | ||
}, | ||
@@ -21,5 +21,5 @@ "bugs": { | ||
"dependencies": { | ||
"oncha": "^0.0.9", | ||
"exalted.future": "^0.0.15", | ||
"prettier": "1.14.3" | ||
} | ||
} |
# next-format | ||
Opinionated es-next formatter inspired by golang fmt. | ||
Because you should not think about how to format javascript, and you should never debate it, and it's basically scheme in the browser and should look alike. | ||
## install | ||
@@ -12,3 +10,3 @@ ``` | ||
## usage | ||
In any directory contining `.js` files run `nextformat [path]` in the command line and all the javascript files will be formatted. `path` is optional. | ||
In any directory containing `.js` files run `nextformat [path]` in the command line and all the javascript files will be formatted. `path` is optional. | ||
``` bash | ||
@@ -20,6 +18,6 @@ > nextformat ./src/ | ||
``` javascript | ||
import next form 'next-format' | ||
import next from 'next-format' | ||
... | ||
// next :: String -> String | ||
next(source) // => FormatedCode | ||
``` | ||
``` |
@@ -1,2 +0,1 @@ | ||
const compose = require('oncha/compose').default | ||
const next = require('./next') | ||
@@ -3,0 +2,0 @@ const fs = require('fs') |
@@ -1,2 +0,2 @@ | ||
const compose = require('oncha/compose').default | ||
const { compose } = require('exalted.future') | ||
const prettier = require('prettier') | ||
@@ -26,2 +26,6 @@ | ||
module.exports = compose(formatRight, alwaysAString, prettify) | ||
module.exports = compose( | ||
formatRight, | ||
alwaysAString, | ||
prettify | ||
) |
Sorry, the diff of this file is not supported yet
83
4531
6
22
+ Addedexalted.future@^0.0.15
+ Addedexalted.future@0.0.15(transitive)
- Removedoncha@^0.0.9
- Removedoncha@0.0.9(transitive)