Socket
Socket
Sign inDemoInstall

flat

Package Overview
Dependencies
1
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.1.0

cli.js

9

package.json
{
"name": "flat",
"version": "4.0.0",
"version": "4.1.0",
"main": "index.js",
"bin": "cli.js",
"scripts": {

@@ -11,4 +12,4 @@ "test": "mocha -u tdd --reporter spec && standard index.js test/index.js"

"devDependencies": {
"mocha": "~3.4.2",
"standard": "^10.0.2"
"mocha": "~5.2.0",
"standard": "^11.0.1"
},

@@ -19,3 +20,3 @@ "directories": {

"dependencies": {
"is-buffer": "~1.1.5"
"is-buffer": "~2.0.3"
},

@@ -22,0 +23,0 @@ "repository": {

@@ -161,1 +161,28 @@ # flat [![Build Status](https://secure.travis-ci.org/hughsk/flat.png?branch=master)](http://travis-ci.org/hughsk/flat)

```
## Command Line Usage
`flat` is also available as a command line tool. You can run it with
[`npx`](https://ghub.io/npx):
```sh
npx flat foo.json
```
Or install the `flat` command globally:
```sh
npm i -g flat && flat foo.json
```
Accepts a filename as an argument:
```sh
flat foo.json
```
Also accepts JSON on stdin:
```sh
cat foo.json | flat
```
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc