JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27378
  • Score
    100M100P100Q11404F
  • License MIT

Add AVA to your project

Package Exports

  • ava-init

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ava-init) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ava-init Build Status: Linux Build status: Windows

Add AVA to your project

Install

$ npm install ava-init

Usage

const avaInit = require('ava-init');

avaInit().then(() => {
    console.log('done');
});

API

avaInit([options])

Returns a Promise.

options

cwd

Type: string
Default: process.cwd()

Current working directory.

args

Type: Array
Default: CLI arguments (process.argv.slice(2))

For instance, with the arguments ['--foo', '--bar'], the following will be put in package.json:

{
    "name": "awesome-package",
    "scripts": {
        "test": "ava --foo --bar"
    }
}

CLI

Install AVA globally $ npm install --global ava and run $ ava --init [<options>].

License

MIT © Sindre Sorhus