tape-init

1.0.0 • Public • Published

tape-init

NPM version js-xo-style

Add tape to your project

Installation

Install tape-init using npm:

npm install --save tape-init

Usage

Module usage

var tapeInit = require('tape-init');
 
tapeInit(function (err) {
  // tape is now added to your project...
});

CLI usage

$> tape_init --help
 
Usage: bin/tape_init [options]
 
Options:
  --promise   Add blue-tape instead of tape  [boolean]
  --pattern   Glob pattern for test files  [string] [default: "'test/**/*.js'"]
  -h, --help  Show help  [boolean]
 
Examples:
  bin/tape_init --promise --pattern src/**/*_test.js  Add blue-tape to your project, running all src/**/*_test.js files on npm test
 

API

tapeInit([options], [cb])

Name Type Description
options Object Options
cb Function Callback

options.cwd

Type: string
Default: process.cwd()

Current working directory.

options.promise

Type: boolean
Default: false

Will add blue-tape to your project if set.

options.pattern

Type: string
Default: 'test/**/*.js'

Glob pattern to locate test files, when running tests with npm test.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i tape-init

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • joakimbeng