New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

next-format

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-format - npm Package Compare versions

Comparing version 0.0.15 to 0.0.17

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc