# posthtml-tape

> Quickly test PostHTML plugins

Latest version **1.0.1** (published 2017-02-06) · CC0-1.0 license · 0 weekly downloads

## Install

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

Provides the command `posthtml-tape`.

## 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.1 |
| Published | 2017-02-06 |
| First published | 2017-02-06 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.5.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonathan Neal |
| Maintainers | jonathantneal |
| Keywords | posthtml, html, posthtml-plugin, testing, tests, tools, tape |

## Links

- npm: https://www.npmjs.com/package/posthtml-tape
- Repository: https://github.com/jonathantneal/posthtml-tape
- Homepage: https://github.com/jonathantneal/posthtml-tape#readme
- Issues: https://github.com/jonathantneal/posthtml-tape/issues
- npm.io page: https://npm.io/package/posthtml-tape

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-02-06
- 1.0.0 — 2017-02-06

## README

# PostHTML Tape [<img src="http://posthtml.github.io/posthtml/logo.svg" alt="PostHTML" width="90" height="90" align="right">][posthtml]

[![NPM Version][npm-img]][npm-url]
[![Build Status][cli-img]][cli-url]
[![Licensing][lic-img]][lic-url]
[![Changelog][log-img]][log-url]
[![Gitter Chat][git-img]][git-url]

[PostHTML Tape] lets you quickly test [PostHTML] plugins.

1. Install this dependency to your project:

   ```sh
   npm install --save-dev posthtml-tape
   ```

2. Add the `posthtml-tape` task to your `package.json`:

   ```json
   {
      "scripts": {
        "tape": "posthtml-tape"
      }
   }
   ```

3. Add tests to your `.tape.js` file:

   ```js
   module.exports = {
		'posthtml-my-plugin': {
			'basic': {
				message: 'supports basic usage'
			}
		}
   };
   ```

That’s it! Now you can use the `tape` task:

```sh
npm run tape
```

## Options

Options may be passed through `package.json` using `posthtmlConfig`:

```json
{
	"posthtmlConfig": {
		"plugin": "path/to/plugin.js",
		"config": "path/to/.tape.js",
		"fixtures": "path/to/htmldir"
	}
}
```

Options may be passed through arguments:

```sh
posthtml-tape --plugin=path/to/plugin.js --config=path/to/.tape.js
```

[npm-url]: https://www.npmjs.com/package/posthtml-tape
[npm-img]: https://img.shields.io/npm/v/posthtml-tape.svg
[cli-url]: https://travis-ci.org/jonathantneal/posthtml-tape
[cli-img]: https://img.shields.io/travis/jonathantneal/posthtml-tape.svg
[lic-url]: LICENSE.md
[lic-img]: https://img.shields.io/npm/l/posthtml-tape.svg
[log-url]: CHANGELOG.md
[log-img]: https://img.shields.io/badge/changelog-md-blue.svg
[git-url]: https://gitter.im/posthtml/posthtml
[git-img]: https://img.shields.io/badge/chat-gitter-blue.svg

[PostHTML Tape]: https://github.com/jonathantneal/posthtml-tape
[PostHTML]: https://github.com/posthtml/posthtml

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