Socket
Socket
Sign inDemoInstall

flow-bin

Package Overview
Dependencies
Maintainers
4
Versions
356
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flow-bin - npm Package Compare versions

Comparing version 0.18.1 to 0.19.0

license

8

cli.js
#!/usr/bin/env node
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';

@@ -3,0 +11,0 @@ var spawn = require('child_process').spawn;

@@ -0,3 +1,11 @@

/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
var bin = require('./lib');
module.exports = bin.path();

10

lib/index.js

@@ -0,1 +1,9 @@

/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';

@@ -5,3 +13,3 @@ var path = require('path');

var VERSION = '0.18.1';
var VERSION = '0.19.0';
var BASE = 'https://github.com/facebook/flow/releases/download/v' + VERSION + '/';

@@ -8,0 +16,0 @@

@@ -0,1 +1,9 @@

/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';

@@ -2,0 +10,0 @@ var log = require('logalot');

16

package.json
{
"name": "flow-bin",
"version": "0.18.1",
"description": "Binary wrapper for Flow - a static type checker for JavaScript",
"version": "0.19.0",
"description": "Binary wrapper for Flow - A static type checker for JavaScript",
"license": "MIT",

@@ -16,3 +16,3 @@ "repository": "sindresorhus/flow-bin",

"scripts": {
"test": "npm run postinstall && node test.js",
"test": "npm run postinstall && xo && ava",
"postinstall": "node lib/install.js"

@@ -48,5 +48,11 @@ },

"devDependencies": {
"ava": "0.0.4",
"bin-check": "^1.0.0"
"ava": "*",
"bin-check": "^3.0.0",
"xo": "*"
},
"xo": {
"ignores": [
"test.js"
]
}
}

@@ -1,4 +0,4 @@

# flow-bin [![Build Status](https://travis-ci.org/sindresorhus/flow-bin.svg?branch=master)](https://travis-ci.org/sindresorhus/flow-bin)
# flow-bin [![Build Status](https://travis-ci.org/flowtype/flow-bin.svg?branch=master)](https://travis-ci.org/flowtype/flow-bin)
> Binary wrapper for [Flow](http://flowtype.org) - a static type checker for JavaScript
> Binary wrapper for [Flow](http://flowtype.org) - A static type checker for JavaScript

@@ -10,7 +10,7 @@ Only OS X and Linux (64-bit) binaries are currently [provided](http://flowtype.org/docs/getting-started.html#_).

```sh
```
$ npm install --global flow-bin
```
```sh
```
$ flow --help

@@ -22,3 +22,3 @@ ```

```sh
```
$ npm install --save flow-bin

@@ -28,6 +28,6 @@ ```

```js
var execFile = require('child_process').execFile;
var flow = require('flow-bin');
const execFile = require('child_process').execFile;
const flow = require('flow-bin');
execFile(flow, ['check'], function (err, stdout, stderr) {
execFile(flow, ['check'], (err, stdout) => {
console.log(stdout);

@@ -40,2 +40,2 @@ });

MIT © [Sindre Sorhus](http://sindresorhus.com)
flow-bin is BSD-licensed. We also provide an additional patent grant.
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