# haiku-core

> babel-plugin と eslint-plugin を使って俳句を見つけるときの共通処理をまとめた関数。ソースコードの AST ノードを受け取り、俳句が含まれているかを判定します。俳句があった場合はその俳句を値として返します。

Latest version **1.0.0** (published 2019-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install haiku-core
pnpm add haiku-core
yarn add haiku-core
bun add haiku-core
```

## 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 | 2019-12-15 |
| First published | 2019-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | sadness_ojisan |
| Maintainers | sadness.ojisan |

## Links

- npm: https://www.npmjs.com/package/haiku-core
- Repository: https://github.com/sadnessOjisan/haiku-core
- Homepage: https://github.com/sadnessOjisan/haiku-core#readme
- Issues: https://github.com/sadnessOjisan/haiku-core/issues
- npm.io page: https://npm.io/package/haiku-core

## Dependencies (2)

- [js-word-kana](https://npm.io/package/js-word-kana.md) ^1.0.0
- [js-word-count-for-haiku](https://npm.io/package/js-word-count-for-haiku.md) ^1.0.3

## Recent versions

- 1.0.0 (latest) — 2019-12-15
- 0.0.4 — 2019-12-15
- 0.0.3 — 2019-12-14
- 0.0.2 — 2019-12-14
- 0.0.1 — 2019-12-14

## README

# haiku-core

babel-plugin と eslint-plugin を使って俳句を見つけるときの共通処理をまとめた関数。ソースコードの AST ノードを受け取り、俳句が含まれているかを判定します。俳句があった場合はその俳句を値として返します。

これは [クソアプリ Advent Calendar 2019](https://qiita.com/advent-calendar/2019/kuso-app)の 19 日目の記事である、[ビルド時に俳句を読めるプラグイン](https://qiita.com/sadnessOjisan/98619eaaef1da8d6545a) のために開発されたものです。

## 導入

```zsh
$ yarn add haiku-core
```

```ts
const hike = require("haiku-core");
const data = hike(node);
if (data) {
  console.log(`俳句を検知しました. => ${data}`);
}
```

## 開発

モジュールインストール

```zsh
$ yarn install
```

公開前にドライラン

```zsh
$ tar -tf $(npm pack)
```

npm に公開

```zsh
$ npm publish
```

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