# tape-init

> Add tape to your project

Latest version **1.0.0** (published 2015-08-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install tape-init
pnpm add tape-init
yarn add tape-init
bun add tape-init
```

Provides the command `tape_init`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-08-12 |
| First published | 2015-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Joakim Carlstein |
| Maintainers | joakimbeng |

## Links

- npm: https://www.npmjs.com/package/tape-init
- npm.io page: https://npm.io/package/tape-init

## Dependencies (3)

- [yargs](https://npm.io/package/yargs.md) ^3.18.0
- [look-up](https://npm.io/package/look-up.md) ^0.7.1
- [has-flag](https://npm.io/package/has-flag.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2015-08-12

## README

# tape-init

[![NPM version][npm-image]][npm-url] [![js-xo-style][codestyle-image]][codestyle-url]

> Add tape to your project

## Installation

Install `tape-init` using [npm](https://www.npmjs.com/):

```bash
npm install --save tape-init
```

## Usage

### Module usage

```javascript
var tapeInit = require('tape-init');

tapeInit(function (err) {
  // tape is now added to your project...
});
```

### CLI usage

```bash
$> 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`](https://www.npmjs.com/package/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

[npm-url]: https://npmjs.org/package/tape-init
[npm-image]: https://badge.fury.io/js/tape-init.svg
[codestyle-url]: https://github.com/sindresorhus/xo
[codestyle-image]: https://img.shields.io/badge/code%20style-xo-brightgreen.svg?style=flat

---
_Source: https://npm.io/package/tape-init · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
