open-index/open-npm huggingface dataset:
npm package: @j-auth/jfjs
Description: JavaScript library for normalizing Japanese form input with jf-func attributes.
Latest version: 0.1.0

# jfjs

フォーム入力時の半角・全角変換や空白整理を、HTML の `jf-func` 属性だけで適用できる JavaScript ライブラリです。

## 特徴

- CDN や配布済みスクリプトを `<script>` タグで読み込むだけで利用可能
- `jf-func` 属性に変換ルールを並べるだけで適用可能
- IME 入力を邪魔しにくい `blur` ベースの整形
- IIFE ビルドでは `window.JFJS.version` を参照可能

## 使い方

```html
<script src="https://example.com/jfjs.iife.js"></script>

<input
  type="tel"
  jf-func="trim delete-hyphen delete-comma digits-zen-to-han"
>
```

## npm で使う

```bash
npm install @j-auth/jfjs
```

```ts
import '@j-auth/jfjs'
```

`jfjs` は import 時に `document` を検出すると自動で初期化されます。

## CDN で使う

```html
<script src="https://cdn.jsdelivr.net/npm/@j-auth/jfjs@0.1.0/dist/jfjs.iife.js"></script>
```

## 対応要素

- `input[type="text"]`
- `input[type="tel"]`
- `input[type="search"]`
- `textarea`

## 主な変換

- `trim`
- `delete-hyphen`
- `delete-comma`
- `digits-han-to-zen`
- `digits-zen-to-han`
- `alphabet-han-to-zen`
- `alphabet-zen-to-han`
- `symbol-han-to-zen`
- `symbol-zen-to-han`
- `kana-han-to-zen`
- `kana-zen-to-han`
- `char-han-to-zen`
- `char-zen-to-han`

## 開発

```bash
npm install
npm run build
```

型定義ファイルもあわせて `dist/` に出力されるため、そのまま npm パッケージとして配布できます。

## npm 公開前チェック

```bash
npm run build
npm run pack:check
```

## Docker で npm publish する

```bash
cp .env.example .env
```

`.env` に npm トークンを設定したら、そのまま自動公開できます。

```bash
docker compose -f docker-compose.publish.yaml up --build
```

実行内容:

- `npm install`
- `npm whoami`
- `npm run build`
- `npm run pack:check`
- `npm publish --access public`

公開が完了するとコンテナは終了します。失敗した場合はその場で終了し、ログに理由が残ります。

## ドキュメントサイト

公開用 Web ページは同一ルート配下の `../jfjs-doc` へ分離しました。ローカルでの配置と同期手順は [docs/repository-split.md](/c:/Users/m-tan/workspace/jfjs/jfjs/docs/repository-split.md) を参照してください。
npm package: @j-book/local-client
Description: This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Latest version: 1.0.0

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).