# js-word-kana

> JS における関数名や予約語のカタカナ一覧.

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

## Install

```sh
npm install js-word-kana
pnpm add js-word-kana
yarn add js-word-kana
bun add js-word-kana
```

## 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-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | sadness_ojisan |
| Maintainers | sadness.ojisan |
| Keywords | haiku |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2019-12-15
- 0.0.6 — 2019-08-04
- 0.0.5 — 2019-08-04
- 0.0.4 — 2019-08-04
- 0.0.3 — 2019-08-04
- 0.0.2 — 2019-07-31
- 0.0.1 — 2019-07-31

## README

# js-word-kana

JS における関数名や予約語のカタカナ一覧.

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

## 導入

```zsh
$ yarn add js-word-kana
```

```ts
const data: { [key: string]: string } = require("js-word-kana").default;
console.log(data)
{ import: 'インポート',
  require: 'リクワイアー',
  console: 'コンソール',
  break: 'ブレイク',
  // 中略
  setState: 'セットステート',
  ref: 'レフ',
  useState: 'ユーズステート',
  useEffect: 'ユーズエフェクト' }

```

## 開発

### 運用

モジュールインストール

```zsh
$ yarn install
```

本番用ビルド

```
$ yarn run build:prd
```

公開前にドライラン

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

npm に公開

```zsh
$ npm publish
```

### 辞書追加

1. 追加したいライブラリを src 配下に作成

```zsh
$ touch React.ts
```

2. key に関数名、value にカタカナを定義し export

各ライブラリの関数を見つけるために、 [pubget](https://github.com/sadnessOjisan/pubget) というツールを開発したので、こちらもご利用ください。

```ts
export default {
  React: "リアクト",
  props: "プロップス",
  componentDidMount: "コンポーネントディドマウント",
  state: "ステート",
  setState: "セットステート",
  ref: "レフ",
  useState: "ユーズステート",
  useEffect: "ユーズエフェクト",
};
```

3. main.ts で それぞれ import し、平たいオブジェクトにして export

```ts
export default {
  // 中略
  ...React,
};
```

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