Socket
Socket
Sign inDemoInstall

ava-init

Package Overview
Dependencies
51
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5 to 0.1.6

5

index.js
'use strict';
var fs = require('fs');
var path = require('path');
var childProcess = require('child_process');
var spawn = require('cross-spawn');
var argv = require('the-argv');

@@ -53,3 +53,4 @@ var readPkgUp = require('read-pkg-up');

var child = childProcess.spawn('npm', ['install', '--save-dev', 'ava'], {
// TODO: Switch to https://github.com/sindresorhus/execa when we eventually target Node.js >=4
var child = spawn('npm', ['install', '--save-dev', 'ava'], {
cwd: path.dirname(pkgPath),

@@ -56,0 +57,0 @@ stdio: 'inherit'

3

package.json
{
"name": "ava-init",
"version": "0.1.5",
"version": "0.1.6",
"description": "Add AVA to your project",

@@ -36,2 +36,3 @@ "license": "MIT",

"arr-exclude": "^1.0.0",
"cross-spawn": "^4.0.0",
"pinkie-promise": "^2.0.0",

@@ -38,0 +39,0 @@ "read-pkg-up": "^1.0.1",

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

# ava-init [![Build Status](https://travis-ci.org/avajs/ava-init.svg?branch=master)](https://travis-ci.org/avajs/ava-init)
# ava-init [![Build Status: Linux](https://travis-ci.org/avajs/ava-init.svg?branch=master)](https://travis-ci.org/avajs/ava-init) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/abj17qsw0j1rts7l/branch/master?svg=true)](https://ci.appveyor.com/project/ava/ava-init/branch/master)
> Add [AVA](http://ava.li) to your project
> Add [AVA](https://ava.li) to your project

@@ -16,5 +16,5 @@

```js
var avaInit = require('ava-init');
const avaInit = require('ava-init');
avaInit().then(function () {
avaInit().then(() => {
console.log('done');

@@ -29,3 +29,3 @@ });

Returns a promise.
Returns a `Promise`.

@@ -36,3 +36,3 @@ #### options

Type: `string`
Type: `string`<br>
Default: `'.'`

@@ -44,6 +44,6 @@

Type: `array`
Type: `Array`<br>
Default: CLI arguments *(`process.argv.slice(2)`)*
For instance, with the arguments `['--foo', '--bar']` the following will be put in package.json:
For instance, with the arguments `['--foo', '--bar']`, the following will be put in package.json:

@@ -67,2 +67,2 @@ ```json

MIT © [Sindre Sorhus](http://sindresorhus.com)
MIT © [Sindre Sorhus](https://sindresorhus.com)
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